此贴为记录贴,在刚开的时候我只能玩过虚拟机,云主机一直没有接触过。当用云主机的时候,真是经历了一波三折,是买了退退了卖,反反复复,最终还是买下了阿里云主机,这里记录下给主机添加虚拟机的流程。(留着备用

[root@VM_187_0_centos ~]# cd /root/lnmp  
[root@VM_187_0_centos lnmp]# ./vhost.sh   
#######################################################################  
#       OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+      #  
#       For more information please visit https://oneinstack.com      #  
#######################################################################  
Do you want to setup SSL under Nginx? [y/n]: n  //是否设置SSL  
Please input domain(example: www.example.com): izmm.me  //添加虚拟机域名  
domain=izmm.me  
Do you want to add more domain name? [y/n]: n  //是否添加更多域名  
Please input the directory for the domain:izmm.me :    
(Default directory: /data/wwwroot/izmm.me):   
Virtual Host Directory=/data/wwwroot/izmm.me  //生成安装目录  
Create Virtul Host directory......  
set permissions of Virtual Host directory......  
Do you want to add hotlink protection? [y/n]: n  //是否添加防盗链  
Allow Nginx/Tengine/OpenResty access_log? [y/n]: y  //是否记录访问日志  
You access log file=/data/wwwlogs/izmm.me_nginx.log  
Allow Apache access_log? [y/n]: y  
You access log file=/data/wwwlogs/izmm.me_apache.log  
nginx: [warn] conflicting server name "izmm.me" on 0.0.0.0:80, ignored  
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok  
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful  
Reload Nginx......  
nginx: [warn] conflicting server name "izmm.me" on 0.0.0.0:80, ignored  
AH00112: Warning: DocumentRoot [/data/wwwroot/blog.izmm.me] does not exist  
Syntax OK  
Restart Apache......  
AH00112: Warning: DocumentRoot [/data/wwwroot/blog.izmm.me] does not exist  
#######################################################################  
#       OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+      #  
#       For more information please visit https://oneinstack.com      #  
#######################################################################  
Your domain:                  izmm.me  
Nginx Virtualhost conf:       /usr/local/nginx/conf/vhost/izmm.me.conf  
Apache Virtualhost conf:      /usr/local/apache/conf/vhost/izmm.me.conf  
Directory of:                 /data/wwwroot/izmm.me  
[root@VM_187_0_centos lnmp]#   
service nginx start  
正文到此结束

留言

0条评论

LEAVE A REPLY

  • face face face face face face face face face face face face face face face face face face face face face face face face face