CentOS-6 yum安装nginx php53 mysql55 搭建LNMP环境
2014-04-02 19:57
961 查看
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
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环境
- centos7.2环境yum方式快速搭建lnmp环境nginx+mariadb+php-fpm
- centos6.5下安装lnmp环境(nginx+linux+mysql+php)[yum安装]
- centos7.2环境yum方式快速搭建lnmp环境nginx+mariadb+php-fpm
- centos linux 下LNMP 环境快速yum搭建(nginx+mysql+memcached+iptables+php)
- centos6.5下使用yum完美搭建LNMP环境(php5.6,mysql5.5,nginx1.10)
- centos LNMP第一部分环境搭建 LAMP LNMP安装先后顺序 php安装 安装nginx 编写nginx启动脚本 懒汉模式 mv /usr/php/{p.conf.default,p.conf} php运行方式SAPI介绍 第二十三节课
- CentOS 7源码编译安装PHP5.6和Nginx1.7.9及MySQL(搭建LNMP环境)
- 基于CentOS 6.8平台最新源代码包编译安装LNMP环境搭建(Nginx+MySQL+PHP)
- CentOS 5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装Wordpress
- CentOS 5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装Wordpress、Discuz
- CentOS5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装wordpress
- Centos 6.8编译安装LNMP环境(Nginx+MySQL+PHP)教程
- Centos6.8编译安装LNMP环境(Nginx+MySQL+PHP)
- CentOS6.5 搭建基础PHP环境(yum安装)
- centos 下搭建LNMP (源码安装nginx,mysql,php)
- CentOS 7 安装 LNMP 环境(PHP7 + MySQL5.7 + Nginx1.10)
- centos 下lnmp(linux+nginx+mysql+php)环境搭建
- 全新安装Mac OSX 开发者环境 同时使用homebrew搭建 PHP,Nginx ,MySQL,Redis,Memcache ... ... (LNMP开发环境)
- centos6.5下使用yum完美搭建LNMP环境(php5.6)