首页
壁纸
关于
推荐
战略合作
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
搜索到
9
篇与
的结果
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安装Sonar
一、环境要求1、JDK >1.8.02、Mysql数据库3、Centos74、具体参照官网环境要求安装步骤下载地址二、安装流程1、下载解压授权wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.5.zip unzip sonarqube-7.5.zip -d /usr/local/sonarqube-7.5 useradd sonar //新建个普通用户,后面以该普通用户身份起动sonarqube服务 chown -R sonar.sonar /usr/local/sonarqube-7.52.配置vim conf/sonar.properties:wq 保存退出3.启动# 启动,另外有console、start、status、stop su sonar /usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh start # 查看状态 su sonar /usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh status # 查看日志 tail -f /usr/local/sonarqube-7.5/logs/sonar.log4.登录浏览器输入服务器ip:9000,默认账号密码admin admin,自行修改三、修改工作目录修改配置文件:# 修改如下 vim /usr/local/sonarqube-7.5/conf/sonar.properties sonar.path.logs=... sonar.path.data=... sonar.path.temp=...保存重启服务su sonar /usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh restart四、Nginx反向代理到80端口# SonarQube 9000 server { listen 80; server_name sonar.***.com; access_log /usr/local/nginx/logs/sonar.log; location / { proxy_pass http://127.0.0.1:9000/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }五、其它1、汉化:下载对应版本中文插件包https://github.com/SonarQubeCommunity/sonar-l10n-zh比如7.5版本的https://github.com/SonarQubeCommunity/sonar-l10n-zh/releases/download/sonar-l10n-zh-plugin-1.25/sonar-l10n-zh-plugin-1.25.jar将中文插件包到sonar插件文件夹/usr/local/sonarqube-7.5/extensions/plugins重启服务su sonar /usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh restart2、加入系统服务:vim /usr/lib/systemd/system/sonar.service[Unit] Description=SonarQube project After=network.target [Service] Type=forking User=sonar Group=sonar ExecStart=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh start ExecReload=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh restart ExecStop=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh stop PrivateTmp=true [Install] WantedBy=multi-user.target# 启动 systemctl start sonar # 停止 systemctl stop sonar # 状态 systemctl status sonar # 开机自启 systemctl enable sonar
2019年04月26日
1 阅读
0 评论
0 点赞
1
2