歡迎您光臨本站 註冊首頁

Linux網路服務軟體安裝備忘錄 ver 0.4

←手機掃碼閱讀     火星人 @ 2014-03-12 , reply:0
  Linux網路服務軟體安裝備忘錄 ver 0.4

by hutuworm


※軟體版本
Fedora CORE 1 Yarrow □下列軟體均在此平台上安裝成功
Apache 2.0.48 ◇Web伺服器
MySQL 4.0.16 ◇資料庫伺服器
PHP 4.3.4 ◇伺服器端腳本語言
ProFTPD 1.2.9 ◇FTP伺服器
vsftpd 1.2.0 ◇非常安全的FTP伺服器
UnrealIRCd 3.2-beta18 ◇IRC伺服器
pptpd 1.1.4-b3 ◇VPN伺服器
cnphpBB 2.0.4mod ◇PHP編寫的BBS
ample 0.5.6 ◇網路電台伺服器
Resin 3.0.3 ◇應用伺服器


※安裝過程

Apache:
1. 下載:
http://www.apache.org/dist/httpd/httpd-2.0.48.tar.gz
2. 解包:
tar xvfz httpd-2.0.48.tar.gz
3. 安裝:
cd httpd-2.0.48
./configure --prefix=/usr/local/apache --enable-so --enable-proxy --enable-rewrite --enable-cache --enable-disk-cache --enable-mem-cache
make
make install
4. 修改httpd.conf:
vi /usr/local/apache/conf/httpd.conf
DirectoryIndex后加上index.php
加一行 AddType application/x-httpd-php .php .phtml .php3 .inc
加一行 LoadModule php4_module modules/libphp4.so
AddDefaultCharset后改為GB2312
5. 啟動時運行:
vi /etc/rc.d/rc.local 加一行 /usr/local/apache/bin/apachectl start


MySQL:
1. 下載:
http://mysql.ihostunit.com/Downloads/MySQL-4.0/mysql-standard-4.0.16-pc-linux-i686.tar.gz
2. 安裝:
groupadd mysql
useradd -g mysql mysql
cd /usr/local
gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
ln -s full-path-to-mysql-VERSION-OS mysql
cd mysql
scripts/mysql_install_db
chown -R root .
chown -R mysql data
chgrp -R mysql .
3. 運行:
./bin/mysqld_safe --user=mysql &
4. 啟動時運行:
vi /etc/rc.d/rc.local 加一行 cd /usr/local/mysql;./bin/mysqld_safe --user=mysql &


PHP:
1. 下載:
http://www.php.net/get/php-4.3.4.tar.gz/from/this/mirror
2. 解包:
tar xvfz php-4.3.4.tar.gz
3. 安裝:
cd php-4.3.4
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --with-gd --with-zlib --with-xml --with-xmlrpc
make
make install
libtool --finish /root/php-4.3.4/libs
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/lib/php.ini 修改 mysql.default_socket =/tmp/mysql.sock


ProFTPD:
1. 下載:
ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz
2. 解包:
tar xvfz proftpd-1.2.9.tar.gz
3. 安裝:
cd proftpd-1.2.9
./configure
make
make install
4. 運行:
/usr/local/sbin/proftpd
5. 啟動時運行:
vi /etc/rc.d/rc.local 加一行 /usr/local/sbin/proftpd


vsftpd:
1. 下載:
ftp://vsftpd.beasts.org/users/cevans/vsftpd-1.2.0.tar.gz
2. 安裝:
tar xvfz
3. 配置:
cp EXAMPLE/INTERNET_SITE/vsftpd.xinetd /etc/xinetd.d/vsftpd
cp EXAMPLE/INTERNET_SITE/vsftpd.conf /etc/
根據需要修改/etc/vsftpd.conf
修改/etc/xinetd.d/vsftpd將disable設置為NO
4. 運行:
service xinetd restart


UnrealIRCd:
1. 下載:
http://www.unrealircd.com/downloads.php
2. 解包:
tar xvfz Unreal3.2-beta18.tar.gz.tar
3. 安裝:
cd Unreal3.2
./Config
./make
4. 配置:
cp doc/example.conf ./unrealircd.conf
根據需求按照文檔設置unrealircd.conf
5. 運行:
./unreal start
6. 啟動時運行:
vi /etc/rc.d/rc.local 加一行 cd /home/hutuworm/Unreal3.2;./unreal start


pptpd:
1. 下載:
http://aleron.dl.sourceforge.net/sourceforge/poptop/pptpd-1.1.4-b4.tar.gz
2. 解包:
tar xvfz pptpd-1.1.4-b4.tar.gz
3. 安裝:
cd poptop-1.1.4/
./configure
make
make check
make install
4. 配置:
※ vi /etc/pptpd.conf
speed 115200
option /etc/ppp/options
localip 192.168.1.88-168
remoteip 192.168.2.88-168
※ vi /etc/ppp/options
lock
name hutuworm.org
auth
require-chap
proxyarp
※ vi /etc/ppp/chap-secrets
hutuworm hutuworm.org password *
※ vi /etc/rc.d/rc.local
modprobe ipip
modprobe ip_conntrack
modprobe iptable_nat
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -d 0.0.0.0/0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/local/sbin/pptpd
5. 重起后自動運行:
reboot


cnphpBB:
1. 下載:
http://www.cnphpbb.com/forum/download.php?id=393
2. 解包:
unrar x phpBB204mod.rar
3. 安裝:
mv phpBB204mod /usr/local/apache/htdocs/forum
chown nobody.nobody /usr/local/apache/htdocs/ -R
mysql: create DATABASE forum;
用瀏覽器打開http://你的域名/forum/,頁面將自動轉向安裝頁面
填好所需參數,按下一步
將forum/contrib,forum/install目錄刪除


ample:
1. 下載:
http://aleron.dl.sourceforge.net/sourceforge/ample/ample-0.5.6.tar.gz
2. 解包:
tar xvfz ample-0.5.6.tar.gz
3. 安裝:
cd ample-0.5.6
./configure
make
make install
4. 配置:
在/usr/local/etc/目錄下建立新文件:ample.conf
內容可參照以下樣例修改:
# An example of a Ample config file
#
# @Copyleft 2003 hutuworm.org
#
# All options supported are included
#
# Boolean values can be given as (case insensitive)
# yes,true,no,false
# Port number to use
port = 8000
# Should files be ordered?
order = false
# Amount of simultaneous clients allowed
clients = 5
# Path to logfile if syslog isn't used
logfile = /var/log/ample
# Path to MP3 files
mp3path = /usr/local/mp3 # mp3文件都放在這個目錄下
# Should that path be recursively scanned?
recursive = true
# Name of the server (displayed to clients in HTML and MetaData)
servername = hutuworm Internet Radio http://radio.hutuworm.org:8000/
# The end
5. 運行:
/usr/local/bin/ample
可用XMMS,winamp,Media Player等客戶端軟體訪問http://radio.hutuworm.org:8000/


Resin:
1. 下載:
http://www.caucho.com/download/resin-ee-3.0.3.tar.gz
2. 解包:
tar xvfz resin-ee-3.0.3.tar.gz
3. 安裝:
mv resin-ee-3.0.3 /usr/local/
cd /usr/local/
ln -s resin-ee-3.0.3/ resin
cd resin
./configure --with-apache=/usr/local/apache
make
make install
4. 運行:
/usr/local/resin/bin/httpd.sh






※ 糊塗饞寺:自由軟體文檔傳染源 http://www.hutuworm.org



[火星人 ] Linux網路服務軟體安裝備忘錄 ver 0.4已經有527次圍觀

http://coctec.com/docs/linux/show-post-67710.html