linux–APACHE基本配置

WEB服务APACHE基本配置:一、配置TCP/IPIP:192.168.12.12网端:192.168.12.1二、查看是否安装:1、#rpm ?qa|grep httpd2、挂载进行安装 #rpm ?ivh hddpd-*注:在4.0版本要先安装apr……这个包 650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816534660.png” />3、查看是否安装成功:#rpm ?qa|grep httpd650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816557361.png” />三、准备主页文件和主目录:1、在根目录下创建目录web /web2、将主页文件放在目录/web下 /web/sunwei.html四、配置主配置文件:#vi /etc/httpd/conf/httpd.conf修改这个基本配置时修改三处即可:1、 搜索80或listen 输入:/80 或 /listen 修改IP 和端口650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816566902.png” />2、搜索DocumentRoot输入:/DocumentRoot修改主目录650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816571263.png” />3、 搜索DirectoryIndex输入:/DocumentIndex修改主页文件(注:主页文件格式:****.html)650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816577084.png” />注:这里的主页文件要放在主目录下。如:/web/sunwei.html五、启动服务:1、#service httpd start650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816586765.png” />2、 关闭放火墙:#service iptables stop六、检查是否成功:在客户机检验一下:输入:http://192.168.12.12650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_05_01/13673816594376.png” />

swsj1314520” 博客,转载请与作者联系!

不敢接受失败的人,往往是那些追求完美的人,

linux–APACHE基本配置

相关文章:

你感兴趣的文章:

标签云: