CentOS5 编译安装LNMP步骤(5)


# 编译apache2服务 mod_php.so
./configure \
--prefix=/data/service/httpd \
--with-perl \
--enable-v4-mapped \
--enable-usertrack \
--enable-headers \
--enable-deflate \
--enable-expires \
--enable-status \
--enable-http \
--enable-dav \
--enable-rewrite=shared \
--enable-ssl \
--enable-so \
--enable-proxy \
--enable-mpms-shared=prefork \
--enable-modules=all \
--enable-mods-shared=most \
--enable-http \
--enable-module=so \
--with-pcre=/data/service/common/pcre \
--with-apr=/data/service/common/apr \
--with-apr-util=/data/service/common/apr-util


#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


vi /etc/pam.d/vsftpd
auth required /lib64/security/pam_userdb.so db=/data/service/vsftpd/etc/login
account required /lib64/security/pam_userdb.so db=/data/service/vsftpd/etc/login


# 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/12bf002bdec73b8aff3344bce56b6a12.html