if cat /etc/redhat-release | grep 'CentOS release 5';then rpm -ivh http://download4.fedora.redhat.com/pub/epel/5/`uname -i`/epel-release-5-4.noarch.rpm;fi
if cat /etc/redhat-release | grep 'CentOS release 6';then rpm -ivh http://download4.fedora.redhat.com/pub/epel/6/`uname -i`/epel-release-6-8.noarch.rpm; fi
yum -y --skip-broken install gcc gcc-c++ libtool-libs libtool autoconf subversion zip unzip wget crontabs iptables file bison patch mlocate flex diffutils automake imake make cmake kernel-devel cpp vim-minimal \
libevent-devel freetype-devel libxml2-devel gd gd-devel libjpeg-devel libpng-devel ncurses-devel zlib-devel \
curl-devel readline-devel openssl-devel glibc-devel glib2-devel bzip2-devel e2fsprogs-devel libidn-devel gettext-devel expat-devel libcap-devel libtool-ltdl-devel pam-devel \
libxslt-devel libc-client-devel freetds-devel unixODBC-devel libtidy-devel libXpm-devel krb5-devel libicu-devel icu \
pcre-devel libmcrypt-devel mhash-devel
if [ `uname -i` == x86_64 ]; then ln -s /usr/lib64/{libpcre*,libjpeg.so,libpng.so,libXpm.so,libc-client.so,libkrb5.so,libexpat.so,libevent.so} /usr/lib/;fi
wget -c http://us.php.net/get/php-5.3.25.tar.gz/from/us2.php.net/mirror
tar xzf php-5.3.25.tar.gz
cd php-5.3.25
wget -c http://pecl.php.net/get/memcache-3.0.6.tgz
tar zxf memcache-3.0.6.tgz
mv memcache-3.0.6 ext/memcache
rm -f configure
./buildconf --force
./configure --prefix=/opt/php53 --with-config-file-path=/opt/php53/etc --with-config-file-scan-dir=/opt/php53/etc/php.d \
--without-pear --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml \
--enable-magic-quotes --enable-mbstring --enable-soap --enable-sockets --enable-wddx --enable-zip --with-curl \
--with-freetype-dir=/usr --with-gd --with-gettext --with-imap --with-imap-ssl --with-png-dir --with-jpeg-dir=/usr \
--with-libexpat-dir=/usr --with-libxml-dir=/usr --with-mcrypt --with-mhash \
--with-pdo-mysql --with-mysql=/usr --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/bin/mysql_config \
--with-openssl --with-pcre-regex=/usr/local --with-png-dir=/usr --with-tidy --with-unixODBC=/usr --with-xmlrpc \
--with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr --with-kerberos --enable-intl=shared \
--enable-memcache --with-zlib-dir;
make -j12
make install
每次醒来 发表于 2013-8-25 23:48
fastcgi_pass 127.0.0.1:9000;
这个可以吗? php停止 启动命令是啥?
★Extreme★ 发表于 2013-8-25 23:39
启动nginx的话,根据你的编译参数,执行 /usr/local/nginx/sbin/nginx,停止就执行pkill nginx ...
每次醒来 发表于 2013-8-25 23:41
nginx的我有脚本 , 就是不知道编译php这2句话里面啥路径 搞不明白还有怎么和nginx 关联? ...
★Extreme★ 发表于 2013-8-25 23:46
按照你的参数,PHP在/opt/php53,监听的是127.0.0.1:9000,nginx那就用fastcgi_pass unix:127.0.0.1:9000 ...
★Extreme★ 发表于 2013-8-25 23:54
好困,我睡觉,你看nginx.conf的注释,php的location那有说明。
每次醒来 发表于 2013-8-26 00:23
第一句执行完毕会出现
[root@123 ]#if [ `uname -i` == x86_64 ]; then ln -s /usr/lib64/{libpcre*,li ...
| 欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) | Powered by Discuz! X3.4 |