LNMP环境搭建(php-5.6.19 nginx-1.9.12 mysql-5.6.19)配置

Nginx

nginx-1.9.12.tar.gz 编译安装

[root@localhostlocal]# tar  zxvf  nginx-1.9.12.tar.gz

[root@localhostlocal]# cd   nginx-1.9.12

[root@localhostnginx-1.9.12]# yum install gcc openssl-devel pcre-develzlib-devel wget -y

[root@localhostnginx-1.9.12]#./configure --user=www --group=www --prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl_module

 

 

[root@localhostnginx-1.9.12]# make && make install

 

[root@localhostnginx]# ./sbin/nginx  启动服务器

[root@localhostnginx-1.9.12]#ps –ef | grep nginx

 

 

php  

php-5.6.19.tar.gz编译安装

[root@localhostlocal]#tar  zxvf php-5.6.19.tar.gz

[root@localhostlocal]#cd   php-5.6.19

[root@localhostphp-5.6.19]#yum install libxml2-devel openssl-devel bzip2-devel libmcrypt-devel–y

[root@localhostphp-5.6.19]#./configure --prefix=/usr/local/php--with-config-file-path=/etc  --enable-fpm --enable-cli --enable-pcntl  --enable-sockets --enable-opcache  --enable-sysvsem--enable-sysvmsg --enable-sysvshm --enable-shmop --enable-zip--enable-ftp   --disable-rpath   --disable-debug--with-pcre-regex --with-mcrypt  --enable-xml--with-openssl     --with-imap-ssl  --enable-soap--with-iconv  --with-curl  --disable-fileinfo   --with-xmlrpc    --with-mhash --with-gd --with-freetype-dir--with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr--disable-rpath  --enable-bcmath   --enable-inline-optimization--enable-mbregex --enable-mbstring  --enable-gd-native-ttf    --with-ldap-sasl --enable-pdo--with-pdo-mysql  --with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config --with-pear --with-libdir=lib64

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值