# 编译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 服务及设置