CentOS-6 yum安装nginx php53 mysql55 搭建LNMP环境

1、导入外部软件库

01.rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm

02.rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-11.ius.el6.noarch.rpm

03.rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

以下添加注释

01.mirrorlist=http://dmirr.iuscommunity.org/mirrorlist?repo=ius-el6&arch=$basearch 

以下删除注释

01.#baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/$basearch 

2、yum安装lnmp

01.yum install mysql55-server mysql55 php53u-fpm php53u-mysql nginx 

3、配置lnmp

location ~ \.php$ { 

        root           html; 

        fastcgi_pass   127.0.0.1:9000; 

        fastcgi_index  index.php; 

        fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name; 

        include        fastcgi_params; 

    } 

4、启动lnmp

01.chkconfig php-fpm on 

02.chkconfig nginx on 

03.chkconfig mysqld on 

04.service php-fpm start 

05.service nginx start 

06.service mysqld start 

CentOS-6 yum安装nginx php53 mysql55 搭建LNMP环境,布布扣,bubuko.com

CentOS-6 yum安装nginx php53 mysql55 搭建LNMP环境

上一篇:Windows 下Java 连 MYSQL数据库


下一篇:ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance