資源描述:
《RHEL5下源碼搭建LAMP Discuz PhpMyAdmin Awstats Ab.pdf》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、RHEL5下源碼搭建LAMP+Discuz+PhpMyAdmin+Awstats+Ab2010/3/25第一版Bycrazylinux實(shí)驗(yàn)?zāi)康模和瓿蒐inux下面的LAMP環(huán)境的搭建,實(shí)現(xiàn)Discuz論壇實(shí)驗(yàn)軟件包:awstats-6.9.tar.gzDiscuz_7.2_FULL_SC_UTF8.ziphttpd-2.2.13.tar.bz2mysql-5.0.75.tar.gzphp-5.2.10.tar.bz2UC1.5_UCH2.0_DZ7.2_SC_UTF8.zipUCenter1.5
2、.0_install.zip實(shí)驗(yàn)環(huán)境:RHEL5.4Webserver:192.168.0.10/24Dnsserver:192.168.0.20/24Clinet:192.168.0.100/24前提條件:在所有l(wèi)inux主機(jī)上配置yum倉(cāng)庫(kù),把DVD光盤(pán)掛在到本地/media下,紅色字體代表修改后結(jié)果[root@localhost~]#cat/etc/yum.repos.d/rhel-debuginfo.repo[rhel-debuginfo]name=RedHatEnterpriseLin
3、ux$releasever-$basearch-Debugbaseurl=file:///media/Server//指定本地/mediaenabled=1//開(kāi)啟倉(cāng)庫(kù)gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release關(guān)閉所有l(wèi)inux防火墻與SELINUX[root@localhostbin]#iptables-F[root@localhostbin]#iptables-X[root@localhostbin]
4、#iptables-Z[root@localhostbin]#setenforce0[root@localhostbin]#serviceiptablessave一、DNS環(huán)境的搭建1、安裝DNS相關(guān)軟件包[root@localhost~]#yum-yinstallbindbind-develbind-chrootcaching-nameserver2、配置DNS主配置文件[root@localhost~]#cd/var/named/chroot/etc/[root@localhostetc]#
5、cp-pnamed.caching-nameserver.confnamed.conf[root@localhostetc]#catnamed.conf////named.caching-nameserver.conf////ProvidedbyRedHatcaching-nameserverpackagetoconfigurethe//ISCBINDnamed(8)DNSserverasacachingonlynameserver//(asalocalhostDNSresolveronly).
6、////See/usr/share/doc/bind*/sample/forexamplenamedconfigurationfiles.////DONOTEDITTHISFILE-usesystem-config-bindoraneditor//tocreatenamed.conf-editstothisfilewillbeloston//caching-nameserverpackageupgrade.//options{listen-onport53{any;};listen-on-v6p
7、ort53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/named/data/named_mem_stats.txt";//Thoseoptionsshouldbeusedcarefullybecausetheydisableport//randomizati
8、on//query-sourceport53;//query-source-v6port53;allow-query{any;};allow-query-cache{any;};};logging{channeldefault_debug{file"data/named.run";severitydynamic;};};viewlocalhost_resolver{match-clients{any;};match-destinations{any;};recursionyes;include"