CentOS6.5搭建LNMP
1:查看环境:
1 2 |
|
2:关掉防火墙
1 |
|
3:配置CentOS 6.0 第三方yum源(CentOS默认的标准源里没有Nginx软件包)
1 |
|
1 |
|
1 |
|
4:安装开发包和库文件
1 2 3 4 |
|
1 2 3 |
|
6:安装Nginx
1 2 3 4 |
|
7:安装MysqL
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
8:安装PHP
1 2 |
|
//安装PHP和所需组件使PHP支持MysqL、FastCGI模式
1 |
|
1 2 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
1 |
10:配置PHP
1 2 |
1 2 |
|
1 2 3 4 |
|
1 2 |
|