ngnix+openssl+pcre+php

来源:互联网 发布:草图大师是什么软件 编辑:程序博客网 时间:2024/04/29 16:00
pcre install
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar zxvf pcre-8.33.tar.gz
cd pcre-8.33
./configure --prefix=/usr/local/pcre-7.8 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre --enable-utf8 &&make && make install
echo "/usr/local/lib/pcre" >/etc/ld.so.conf
ldconfig


openssl install
http://www.openssl.org/source/openssl-1.0.0a.tar.gz
tar zxvf ....
./config --prefix=/usr/local/ssl-0.9.8l shared zlib-dynamic enable-camellia && make depend && make install
cd /usr/local
ln -s ssl-0.9.8l ssl
echo "/usr/local/lib/ssl" > /etc/ld.so.conf
ldconfig
cd /usr/local
ldd /usr/local/ssl/bin/openssl
which openssl
version
echo "/usr/local/ssl/bin:" >/root/.bash_profile


nginx install
将pcre与openssl安装包解压到/tmp


./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=../pcre-8.33/ --with-openssl=/tmp/openssl-1.0.0a/ --with-http_gzip_static_module --with-http_stub_status_module --without-http_memcached_module && make && make install
...


mysql install


#http://mysql.ntu.edu.tw/Downloads/MySQL-5.1/MySQL-shared-compat-5.1.63-1.rhel5.i386.rpm
wget http://mysql.ntu.edu.tw/Downloads/MySQL-5.1/mysql-5.1.63.tar.gz
yum install ncurses-devel
useradd mysql
tar zxvf mysql-5.0.40.tar.gz
cd mysql-5.0.40
./configure --prefix=/usr/local/mysql --with-extra-charsets=all --with-charset=utf8 --with-unix-socket-path=/usr/local/mysql/var/mysql.sock --with-named-curses-libs=/lib/libncursesw.so.5 && make && make install


ln -s /usr/local/mysql/var/mysql.sock  /tmp/mysql.sock 
chown -R mysql /usr/local/mysql/var
/usr/local/mysql/bin/mysqld_safe &          
cp support-files/my-medium.cnf /etc/my.cnf
echo "/usr/local/mysql/bin/mysqld_safe &" >>/etc/rc.local
#cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf   
cp support-files/mysql.server /etc/init.d/mysqld  
#chmod 755 /etc/init.d/mysqld       
#bash scripts/mysql_install_db  --user=mysql --basedir=/usr/local/mysql  --datadir=/service/data/         
/usr/local/mysql/bin/mysql -u root -p 
/usr/local/mysql/bin/mysqladmin -u root password  *****


php支持文件libxml2 install
wget ftp://rpmfind.net/linux/centos/6.4/os/i386/Packages/libxml2-2.7.6-8.el6_3.4.i686.rpm
rpm -i ....


php install
http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
tar -zvxf php-5.4.18.tar.gz


cd php-5.4.18
yum -y install bzip2 bzip2-devel
yum -y install libcurl libcurl-devel
yum -y install libmcrypt-devel mhash-devel libxslt-devel\
yum install libjpeg.i686 libpng.i686 freetype.i686 libjpeg-devel.i686 libpng-devel.i686 freetype-devel.i686 -y
(libmcrypt install)
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
tar -zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
mkdir -p /usr/local/libmcrytp
./configure prefix=/usr/local/libmcrytp/ && make && make install






./configure --prefix=/usr/local/php --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-freetype-dir=/usr/local/freetype --with-mysql=/usr/local/mysql --enable-fpm --with-mcrypt=/usr/local/libmcrytp --with-zlib --enable-mbstring --disable-pdo --with-curl --disable-debug  --disable-rpath --enable-inline-optimization --with-bz2  --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-gd --with-jpeg-dir




/usr/local/php/sbin/php-fpm &
/usr/local/nginx/nginx &


CREATE DATABASE wordpress1;
grant all on wordpress1.* to sun@'%' identified by 'password';
FLUSH PRIVILEGES;


ps -A |grep ***
lsof -i :****
0 0
原创粉丝点击