1.配置域名访问

(1)添加虚拟主机

(2)nginx配置

cd /usr/local/nginx/conf/vhost
vim zkadmin.zouke.com.conf

 

(3)apache配置

 cd /usr/local/apache/conf/vhost

vim zkadmin.zouke.com.conf

 

(4)重启lnmpa服务

lnmp restart

(5)访问站点

2.配置IP访问

(1)添加ip

(2)nginx配置

cd /usr/local/nginx/conf/vhost
vim 122.152.219.178:8082.conf

 

(3)apache配置

cd /usr/local/apache/conf/vhost
vim 122.152.219.178:8082.conf

 (4)重启lnmpa服务

lnmp restart

(5)访问站点

 

 参考文章:https://lnmp.org/install.html

 

版权声明:本文为zouke1220原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/zouke1220/p/9722208.html