欢迎来到天天文库
浏览记录
ID:33879305
大小:2.30 MB
页数:22页
时间:2019-03-01
《RHEL5下源码搭建LAMP Discuz PhpMyAdmin Awstats Ab.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、RHEL5下源码搭建LAMP+Discuz+PhpMyAdmin+Awstats+Ab2010/3/25第一版Bycrazylinux实验目的:完成Linux下面的LAMP环境的搭建,实现Discuz论坛实验软件包: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实验环境:RHEL5.4Webserver:192.168.0.10/24Dnsserver:192.168.0.20/24Clinet:192.168.0.100/24前提条件:在所有linux主机上配置yum仓库,把DVD光盘挂在到本地/media下,红色字体代表修改后结果[root@localhost~]#cat/etc/yum.repos.d/rhel-debuginfo.repo[rhel-debuginfo]name=RedHatEnterpriseLin
3、ux$releasever-$basearch-Debugbaseurl=file:///media/Server//指定本地/mediaenabled=1//开启仓库gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release关闭所有linux防火墙与SELINUX[root@localhostbin]#iptables-F[root@localhostbin]#iptables-X[root@localhostbin]
4、#iptables-Z[root@localhostbin]#setenforce0[root@localhostbin]#serviceiptablessave一、DNS环境的搭建1、安装DNS相关软件包[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"
此文档下载收益归作者所有