码迷,mamicode.com
首页 > Web开发 > 详细

ngix 创建新的网站

时间:2017-02-12 19:08:42      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:sftp   restart   sts   host   mysql   root   目录   vhost   name   

1. 进入ngix 的目录的conf 目录 的 vhosts 

2. 复制一份新的v2.edc.com.conf

3. server_name : v2.edc.com 

    root :  /ali/...../目录 

4.   重启nginx 服务

        │ /etc/init.d/nginx start|stop|restart                     │                       
                      │ /etc/init.d/php-fpm start|stop|restart                   │                       
                      │ /etc/init.d/mysql start|stop|restart                     │                       
                      │ /etc/init.d/vsftpd start|stop|restart      

 

ngix 创建新的网站

标签:sftp   restart   sts   host   mysql   root   目录   vhost   name   

原文地址:http://www.cnblogs.com/yangyuqiu/p/6391479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!