在61上为每日优鲜配置

使用了自动布置vhost的一个shell脚本,/root/lnmp/vhost.sh
一,要求输入虚拟主机的名称 e.g: mryx.masengine.com
二,路径和文件夹的名称,默认是 /home/wwwroot/mryx.masengine.com,不用输入
三,hotline —-> n
四,记录Nginx的log —–> y
五,记录Apache的log —–> y
在本地新建分支 p-mryx 推到远程仓库
然后去 61服务器上 /home/wwwroot/mryx.masengine.com 里 clone 远程仓库的代码,切换到新分支
最后进行安装就可以;
如果是2.0代码迁移,切记修改几个上传目录的权限

———————————————————————————————————–
1,Please input domain(example: www.linuxeye.com): ntt.masengine.com

2,Do you want to add more domain name? [y/n]: n
3,(Default directory: /home/wwwroot/ntt.masengine.com):
4,Do you want to add hotlink protection? [y/n]: n
5,Allow Nginx/Tengine access_log? [y/n]: y
6,Allow Apache access_log? [y/n]: y
the configuration file /usr/local/tengine/conf/nginx.conf syntax is ok
configuration file /usr/local/tengine/conf/nginx.conf test is successful
Restart Nginx……
nginx: [error] invalid PID number “” in “/var/run/nginx.pid”

Syntax OK
Restart Apache……

#######################################################################
#        LANMP for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+          #
# For more information please visit http://blog.linuxeye.com/31.html  #
#######################################################################
Your domain:                    ntt.masengine.com
Nginx Virtualhost conf:         /usr/local/tengine/conf/vhost/ntt.masengine.com.conf
Apache Virtualhost conf:        /usr/local/apache/conf/vhost/ntt.masengine.com.conf
Directory of:                   /home/wwwroot/ntt.masengine.com

Published by

发表评论

电子邮件地址不会被公开。 必填项已用*标注