美文网首页
公司项目部署方案

公司项目部署方案

作者: ggr | 来源:发表于2018-04-14 23:54 被阅读0次
    • 首先定位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

    相关文章

      网友评论

          本文标题:公司项目部署方案

          本文链接:https://www.haomeiwen.com/subject/cpmahftx.html