停止并禁用虚拟机 NetworkManager 服务
# systemctl stop NetworkManager # systemctl disable NetworkManager
重启网络服务
# service network restart
https://blog.csdn.net/qq_38872310/article/details/79805445
https://blog.csdn.net/qq_43666528/article/details/103743662
ngnix配置 https://blog.csdn.net/qq_37345604/article/details/90034424
修改nginx文件
vi /usr/local/nginx/conf/nginx.conf
启动nginx
./usr/local/ngnix/sbin/nginx (-s stop)||(-s reload)对应关闭重启
杀死所有nginx所有的端口
taskkill /IM nginx.exe /F
端口访问不到的话可以关闭防火墙
/etc/init.d/iptables stop
重启防火墙
/etc/init.d/iptables restart
nginx负载均衡
upstream mysvr { server http://192.168.10.121:3333; server http://192.168.10.122:3333; } server { listen 8080 location / { proxy_pass mysvr;
} }
https://www.cnblogs.com/larry-luo/p/10131987.html
https://www.cnblogs.com/softidea/p/5777810.html
https://www.cnblogs.com/laifw/p/11193537.html
https://www.cnblogs.com/ghjbk/p/6744131.html
不知道会遇到什么情况贴几个也许对你有帮助
sonarqube jenkins docker scanner环境搭建
1.
scp jdk-11.0.12_linux-x64_bin.rpm root@101.201.67.210:/
2.
rpm -ivh jdk-11.0.12_linux-x64_bin.rpm
3.
java -version
4.
yum install -y docker
5.附加一篇博客:https://blog.csdn.net/qq_42712518/article/details/108311680
vi /etc/docker/daemon.json
输入 "registry-mirrors": ["https://pee6w651.mirror.aliyuncs.com"]
6.
systemctl start docker docker ps docker ps -a
7.
docker pull postgres docker pull sonarqube
mkdir sonarqube
cd sonarqube mkdir data logs extensions
9.建卷
$> docker volume create --name sonarqube_data $> docker volume create --name sonarqube_logs $> docker volume create --name sonarqube_extensions
10.运行postgres
docker run -d --name pg -p 5432:5432 -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar postgres
11.运行sonarqube
https://docs.sonarqube.org/latest/setup/install-server/ docker run --rm -p 9000:9000 -v sonarqube_extensions:/opt/sonarqube/extensions sonarqube:8.9.1-community
删除docker镜像 docker rmi 镜像
11.安全组阿里云
查看防火墙是否关闭 白色关闭
systemctl status firewalld
Jenkins
docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins
docker exec -it 53d6d47b245b /bin/bash
cat /var/jenkins_home/secrets/initialAdminPassword
docker exec -it (这个是docker ps -a后names那列你想要进入的name) /bin/bash
cd /var/jenkins_home/workspace
ls
看见了
使用pm2
ps aux | grep node 查看正在运行的node项目
lsof -i tcp:8080
kill -9 pid
scp build root@101.201.67.210:/build