LAMP ,LNMP环境搭建

yum快速搭建lamp环境
http://www.jb51.net/article/95779.htm

apache创建虚拟主机 假设主机域名为xyz.com

1.在/var/log/httpd/下创建对应xyz.com的日志目录

2.在/etc/httpd/conf.d/下创建虚拟主机配置文件 xyz.com.conf

DocumentRoot /var/www/xyz

ServerName xyz.com

ErrorLog /var/log/httpd/xyz.com/error.log

CustomLog /var/log/httpd/xyz.com/access.log combined

3.创建对应根目录 var/www/xyz.com

4.域名解析到此ip

5.重启服务器

centos7 下安装 lnmp 环境(mysql5.7 php7)

mysql nginx 安装

https://www.jianshu.com/p/02baa54283ba

php7安装

http://www.fancyecommerce.com/2017/05/31/php-7-%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85/

https://blog.csdn.net/kunga0814/article/details/74369285 //防火墙开发端口

你可能感兴趣的:(LAMP ,LNMP环境搭建)