国内源码下载:https://gitee.com/mirrors/Nacos
强烈建议直接用github下载安装包,本地打的包应该格式有问题,启动脚本一定有问题。
1.google云的Debian
1.1,下载,解压,启动:
下载,速度很快()
wget https://github.com/alibaba/nacos/releases/download/1.2.1/nacos-server-1.2.1.tar.gz
或wget https://github.com/alibaba/nacos/releases/download/1.1.4/nacos-server-1.1.4.tar.gz
解压 : tar -xvf nacos-server-1.1.4.tar.gz
重合名:mv nacos nacos114
启动: bash startup.sh -m standalone
1.2 查看启动后的访问路径:tail -500 /wsc/deploy/nacos114/logs/start.out
1.3 配置Nginx:vi /usr/local/nginx/conf/nginx.conf
location /nacos/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://XXX.XXX.XXX.XXX:8848/nacos/;
}
2.阿里云Centos:
强烈建议直接用github下载安装包,本地打的包应该格式有问题,启动脚本一定有问题。
2.1,下载,解压,启动:
慢的要命:可用我共享的下载
链接:https://pan.baidu.com/s/1C8nwrQ-PPktkI7EhZpyShA
提取码:sxzz
wget https://github.com/alibaba/nacos/releases/download/1.2.1/nacos-server-1.2.1.tar.gz
或wget https://github.com/alibaba/nacos/releases/download/1.1.4/nacos-server-1.1.4.tar.gz
或scp -P 22 root@xxx.xx.xx.xx:/wsc/deploy/nacos114/nacos-server-1.1.4.tar.gz /wsc/deploy
解压 : tar -xvf nacos-server-1.1.4.tar.gz
重合名:mv nacos nacos114
启动: sh startup.sh -m standalone
2.2 查看启动后的访问路径:tail -500 /wsc/deploy/nacos114/logs/start.out
2.3 配置Nginx:vi /usr/local/nginx/conf/nginx.conf
location /nacos/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://XXX.XXX.XXX.XXX:8848/nacos/;
}