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