公司项目部署方案

  • 首先定位nginx的位置,再定位其配置文件的位置
ps -aux | grep nginx
root     19089  0.0  0.0  88348  3864 ?        Ss   12:43   0:00 nginx: master process /usr/sbin/nginx
www-data 19090  0.3  0.1  89292  5512 ?        S    12:43   0:16 nginx: worker process
www-data 19091  0.4  0.1  89292  5512 ?        S    12:43   0:23 nginx: worker process
www-data 19092  0.3  0.1  89292  5512 ?        S    12:43   0:17 nginx: worker process
www-data 19093  0.2  0.1  89292  5512 ?        S    12:43   0:14 nginx: worker process
root     19587  0.0  0.0  11740   940 pts/0    S+   14:11   0:00 grep --color=auto nginx

/usr/sbin/nginx -t
nginx: [warn] conflicting server name "ecitic-redpacket.youyushop.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "cmb-sound.weijuju.com" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

定位nginx的位置在/etc/nginx/nginx.conf,记录下来,方面后面热切使用。
将我们现在在生产上使用的代码复制到其中一个服务节点上并且更新我们要上线的数据包,启动这个服务节点,同时查看启动日志,测试好接口后,进入nginx的配置文件中进行路由切换。

ZEFQ72PK2EDR$8XW0XF76HU.jpg

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容