CentOS6 编译安装LNMP步骤(4)


# eaccelerator
/data/service/phpfpm/bin/phpize \
&& ./configure \
--enable-eaccelerator=shared \
--with-php-config=/data/service/phpfpm/bin/php-config
make && make install
sed -i '$a \;extension=eaccelerator.so' /data/service/phpfpm/etc/php.ini
## php5.2
/data/service/php/bin/phpize \
&& ./configure \
--enable-eaccelerator=shared \
--with-php-config=/data/service/php/bin/php-config
make && make install
sed -i '$a \;extension=eaccelerator.so' /data/service/php/etc/php.ini


#APC
/data/service/phpfpm/bin/phpize \
&& ./configure \
--enable-eaccelerator=shared \
--with-php-config=/data/service/phpfpm/bin/php-config
make && make install
sed -i '$a \;extension=eaccelerator.so' /data/service/phpfpm/etc/php.ini


# ZendGuardLoader php5.3
cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/ZendGuardLoader.so \
/data/service/phpfpm/lib/php/extensions/no-debug-non-zts-20090626/
sed -i '$a \\n\;[Zend]\n;zend_extension="/data/service/phpfpm/lib/php/extensions/no-debug-non-zts-20090626/ZendGuardLoader.so"\n;zend_loader.enable=1\n;zend_loader.disable_licensing=0\n;zend_loader.obfuscation_level_support=3\n;zend_loader.license_path=\n' /data/service/phpfpm/etc/php.ini


# ZendOptimizer php5.2
cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so /data/service/phpfpm_52/lib/php/extensions/no-debug-non-zts-20060613/
sed -i '$a \\n\;[Zend]\n;zend_extension="/data/service/phpfpm_52/lib/php/extensions/no-debug-non-zts-20060613/ZendOptimizer.so"\n;zend_loader.enable=1\n;zend_loader.disable_licensing=0\n;zend_loader.obfuscation_level_support=3\n;zend_loader.license_path=\n' /data/service/phpfpm_52/etc/php.ini


# nginx
groupadd www -g 1001
useradd www -u 1001 -g www -s /sbin/nologin


./configure \
--prefix=/data/service/nginx \
--with-http_stub_status_module \
--with-pcre=../pcre-8.32 \
--with-http_ssl_module \
--with-google_perftools_module
make && make install


#vsftpd
vi defs.h
把/etc/vsftpd.conf /data/service/vsftpd/etc/vsftpd.conf
vi builddefs.h
把 #undef VSF_BUILD_TCPWRAPPERS 修改成 #define VSF_BUILD_TCPWRAPPERS
把 #undef VSF_BUILD_SSL                修改成 #define VSF_BUILD_SSL
make


mkdir -p /data/service/vsftpd/sbin /data/service/vsftpd/man /data/service/vsftpd/etc /data/service/vsftpd/etc/virtual
cp vsftpd /data/service/vsftpd/sbin/vsftpd \
&& chmod 755 /data/service/vsftpd/sbin/vsftpd
cp vsftpd.8 /data/service/vsftpd/man/vsftpd.8 \
&& chmod 644 /data/service/vsftpd/man/vsftpd.8
cp vsftpd.conf.5 /data/service/vsftpd/man/vsftpd.conf.5 \
&& chmod 644 /data/service/vsftpd/man/vsftpd.conf.5
cp vsftpd.conf /data/service/vsftpd/etc/vsftpd.conf.default \
&& chmod 644 /data/service/vsftpd/etc/vsftpd.conf.default
cp RedHat/vsftpd.pam /data/service/vsftpd/etc/vsftpd.pam \
&& chmod 644 /data/service/vsftpd/etc/vsftpd.pam
echo -e "user\npassword\n" > /data/service/vsftpd/etc/user_pass
echo "user" > /data/service/vsftpd/etc/user_list
echo "/usr/bin/db_load -T -t hash -f /data/service/vsftpd/etc/user_pass /data/service/vsftpd/etc/login.db" \
>> /data/service/vsftpd/sbin/pass.sh
chmod 755 /data/service/vsftpd/sbin/pass.sh
echo "auth required /lib64/security/pam_userdb.so db=/data/service/vsftpd/etc/login" > /etc/pam.d/vsftpd
echo "account required /lib64/security/pam_userdb.so db=/data/service/vsftpd/etc/login" >> /etc/pam.d/vsftpd


# tokyo cabinet
./configure --prefix=/data/service/common/tokyocabinet
make && make install
# tokyo tyrant
./configure --prefix=/data/service/tokyotyrant --with-tc=/data/service/common/tokyocabinet
make && make install
/data/service/tokyotyrant/bin/ttserver -port 11213 -thnum 8 -dmn -pid /data/data/ttdb/ttserver.pid -log /data/data/ttdb/ttserver.log -le -ulog /data/data/ttdb/ -ulim 256m -sid 1 -rts /data/data/ttdb/ttserver.rts /data/data/ttdb/database.tcb#lmemb=1024#nmemb2048#bnum10000000


/data/service/memcached/bin/memcached -d -u www -c 64 -p 11212

相关阅读:

Ubuntu 13.04 安装 LAMP\Vsftpd\Webmin\phpMyAdmin 服务及设置

CentOS 6.4 下的LNMP 生产环境搭建及安装脚本

生产环境实用之LNMP架构的编译安装+SSL加密实现

LNMP 全功能编译安装 for CentOS 6.3笔记

CentOS 6.3 安装LNMP (PHP 5.4,MyySQL5.6)

在部署LNMP的时候遇到Nginx启动失败的2个问题

Ubuntu安装Nginx php5-fpm MySQL(LNMP环境搭建)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/0e1d6b1546178c41635338ec1750ffee.html