加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

centos 6.0下最简编译安装Nginx+Mysql+PHP+Zend

发布时间:2016-05-26 15:32:14 所属栏目:Linux 来源:网络整理
导读:Nginx是一个小巧而高效的Linux下的Web服务器软件,是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler 站点开发的, 已经在一些俄罗斯的大型网站上运行多年,相当

赋权文件~~~|~~~加入自启

[root@itchenyi nginx-1.0.6]# chmod 755 

/etc/rc.d/init.d/nginx
[root@itchenyi nginx-1.0.6]# chkconfig nginx on
[root@itchenyi /etc/rc.d/init.d/nginx restart
停止 nginx:                                               [失败]
正在启动 nginx:                                           [确定]

安装 libmcrypt| 一条命令完成安装, 你要是不放心就拆开用~~~~

[root@itchenyi chenyi]tar zxf libmcrypt-2.5.7.tar.gz
[root@itchenyi chenyi]cd libmcrypt-2.5.7
[root@itchenyi libmcrypt-2.5.7]# ./configure && make && make install

安装php   做到这一步 就可以去喝壶茶了~~~~~无奈啊。。。

解包|解包|打补丁|预配置|

[root@itchenyi chenyi]# 

tar -zxf php-5.2.17.tar.gz 
[root@itchenyi chenyi]# gunzip php-5.2.17-fpm-0.5.14.diff.gz 
[root@itchenyi chenyi]# patch -d php-5.2.17 -p1 <php-5.2.17-fpm-0.5.14.diff
[root@itchenyi chenyi]# cd php-5.2.17
[root@itchenyi php-5.2.17]# ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc 

--with-mysql=/usr/local/mysql  --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-

sock=/tmp/mysql.sock --with-gd  --with-iconv --with-freetype --with-jpeg --with-png --with-zlib --with-

libxml --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable

-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fastcgi 

--enable-fpm --enable-force-cgi-redirect --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-

openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-

gettext --with-mime-magic --enable-suhosin --enable-session --with-mcrypt

编译|安装


[root@itchenyi php-5.2.17]# make && make install

建立配置文件

[root@itchenyi php5]# 

cd /usr/local/php5/
[root@itchenyi php5]# cp /chenyi/php-5.2.17/php.ini-dist /usr/local/php5/etc/php.ini
[root@itchenyi php5]# rm -rf /etc/php.ini
[root@itchenyi php5]# ln -s /usr/local/php5/etc/php.ini /etc/php.ini

编辑php-fpm.conf

vi /usr/local/php5/etc/php-fpm.conf

取消下面的注释 如图~

centos 6.0下最简编译安装Nginx+Mysql+PHP+Zend

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读