首页
壁纸
关于
推荐
战略合作
Google
主题Joe
Search
1
涂鸦设备本地化接入(涂鸦电表)
13 阅读
2
CentOS 定时同步指定文件到ftp
6 阅读
3
laydate输入日期年月日时分,以十分钟为间隔,不需要秒
5 阅读
4
记一次Django_cas_ng数据库migrate错误
5 阅读
5
Centos7 安装python3并配置pip
4 阅读
运维
Windows
Linux
MacOS
Android
vmware
开发
Python
Go
Html
Electron
智家
HomeAssistant
ESPhome
Unraid
群晖
网络相关
登录
Search
标签搜索
运维
Linux
Python
django
智能家居
Nginx
MACos
brew
layui
cas
群晖
nas
zabbix
vim
JDK
sonar
jenkins
Nexus
转发
mysql
Ruike
累计撰写
29
篇文章
累计收到
109
条评论
首页
栏目
运维
Windows
Linux
MacOS
Android
vmware
开发
Python
Go
Html
Electron
智家
HomeAssistant
ESPhome
Unraid
群晖
网络相关
页面
壁纸
关于
推荐
战略合作
Google
主题Joe
搜索到
10
篇与
的结果
2025-02-17
记一次ubuntu serverDNS配置修复
安装ubuntu2004 2404并配置网卡后,DNS默认值任然为127.0.0.53# 查看dns nslookup baidu.com ;; Got SERVFAIL reply from 127.0.0.53 Server: 127.0.0.53 Address: 127.0.0.53#53 # 查看DNS文件是链接到stub-resolv.conf ls -al /etc/resolv.conf /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf # 查看/run/systemd/resolve/下有resolv.conf,是正确的,和网卡一致 ls /run/systemd/resolve/ # 更新为正确resolv.conf sudo mv /etc/resolv.conf /etc/resolv.conf.bak sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
2025年02月17日
1 阅读
0 评论
0 点赞
2024-01-08
CentOS 定时同步指定文件到ftp
1、安装lftpsudo yum install lftp -y2、使用命令lftp -u username,password -e "mirror -R /path/to/local /path/to/ftp; quit" ftp://ftpserver同步成功提醒Total: 1 directory, 2 files, 0 symlinks New: 2 files, 0 symlinks 5471 bytes transferred To be removed: 1 directory, 0 files, 0 symlinks可以试用crontab调用或其它方式
2024年01月08日
6 阅读
20 评论
1 点赞
2019-04-26
配置nginx端口转发
如果本地服务confluence端口为8090,每次打开都要输入端口号貌似有点不优雅。所以我们可以用nginx做本地端口转发:一、安装Nginx:Centos安装Nginx二、编辑配置文件vim /usr/local/nginx/conf/nginx.conf# confluence 8090,一个转发一个server # 将域名confluence.test.com的所有流量转发到8090端口 # 其实真实访问地址就是将“confluence.test.com” 替换成 “http://127.0.0.1:8090” server { listen 80; server_name confluence.test.com; access_log /usr/local/nginx/logs/confluence.log; location / { proxy_pass http://127.0.0.1:8090/; } } 重启服务systemctl restart nginx 三、优雅食用
2019年04月26日
1 阅读
0 评论
0 点赞
2019-04-26
Centos7安装Nexus maven搭建个人仓库
一、环境要求:装有JDK二、安装软件1.下载链接:Nexus OSS 3.x版2.解压软件:tar -zxvf nexus-3.15.1-01-unix.tar.gz3.移动包到/usr/local目录下mv nexus-3.15.1-01 /usr/local -rf4.创建一个用户sudo useradd -rm nexus chown -R nexus.nexus /usr/local/nexus-3.15.1-01/5.创建服务:vim /etc/systemd/system/nexus.service 插入下面内容[Unit] Description=nexus service After=network.target [Service] Type=forking LimitNOFILE=65536 ExecStart=/usr/local/nexus-3.15.1-01/bin/nexus start ExecStop=/usr/local/nexus-3.15.1-01/bin/nexus stop User=nexus Restart=on-abort [Install] WantedBy=multi-user.target 使服务生效并开机自启sudo systemctl daemon-reload sudo systemctl enable nexus.service sudo systemctl start nexus.service 6.启动:systemctl start nexus 7.配置方向代理:apache:ProxyRequests Off ProxyPreserveHost On <VirtualHost *:80> ServerName repo.example.com ServerAdmin admin@example.com AllowEncodedSlashes NoDecode ProxyPass /nexus http://localhost:8081/nexus nocanon ProxyPassReverse /nexus http://localhost:8081/nexus ErrorLog logs/repo.example.com/nexus/error.log CustomLog logs/repo.example.com/nexus/access.log common </VirtualHost> Nginx:http { proxy_send_timeout 120; proxy_read_timeout 300; proxy_bufferingoff; keepalive_timeout 5 5; tcp_nodelayon; server { listen *:80; server_name repo.example.com; # allow large uploads of files client_max_body_size 1G; # optimize downloading files larger than 1G # proxy_max_temp_file_size 2G; location /nexus { # Use IPv4 upstream address instead of DNS name to avoid attempts by nginx to use IPv6 DNS lookup proxy_pass http://127.0.0.1:8081/nexus; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } 更多请查看:run-behind-a-reverse-proxy8.更改nexus目录:vim /usr/local/nexus-3.15.1-01/bin/nexus.vmoptions 更改下面三个路径到你想要的路径下: -Dkaraf.data=/opt/sonatype-work/nexus3 -Djava.io.tmpdir=/opt/sonatype-work/nexus3/tmp -XX:LogFile=/opt/sonatype-work/nexus3/log/jvm.log 完美Ending更多详情,请看官方文档:sonatypeDoc
2019年04月26日
1 阅读
0 评论
0 点赞
2019-04-26
Centos7 安装Jenkins流程
一、环境确认:1.硬件要求:256 MB of RAM1 GB的驱动器空间2.软件要求:确认系统安装了jdk:java -versionJava 8是当前唯一支持的运行时环境,支持32位和64位版本如果没装,运行下面命令进行安装yum install java二、系统安装1.下载依赖sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 2.导入秘钥sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key3.安装yum install jenkins 4.查找Jenkins的安装路径rpm -ql jenkins /etc/init.d/jenkins /etc/logrotate.d/jenkins /etc/sysconfig/jenkins #jenkins配置文件,“端口”,“JENKINS_HOME”等都可以在这里配置 /usr/lib/jenkins #安装目录,war包会放在这里 /usr/lib/jenkins/jenkins.war /usr/sbin/rcjenkins /var/cache/jenkins /var/lib/jenkins #默认的JENKINS_HOME /var/log/jenkins #jenkins日志目录 5.配置Jenkinsvim /etc/sysconfig/jenkins 6.确认无误后启动systemctl start jenkins systemctl enable jenkins7.添加端口firewall-cmd --permanent --add-port=8080/tcp firewalld reload三、网页安装1.网页打开:http://yourip:8080根据网页提示,cat出初始密码,填入密码框cat /var/lib/jenkins/secrets/initialAdminPassword
2019年04月26日
2 阅读
0 评论
0 点赞
1
2