歡迎您光臨本站 註冊首頁

在CentOS 5.5 部署Apache HTTP伺服器 2.0

←手機掃碼閱讀     火星人 @ 2014-03-12 , reply:0
  

1.download

[root@localhost ]# lynx http://www.apache.org/dist/httpd/httpd-2.2.19.tar.gz

2.extract

[root@localhost ]# gzip -d httpd-2.2.19.tar.gz

[root@localhost ]# tar -xvf httpd-2.2.19.tar

3.Configure as default

[If you need customed configure, please  run "./configure --help" for details. ]

[root@localhost ]# ./configure

4.Compile

[for this step, maybe you need install gcc first. You can run "yum install gc" to install gc ]

[root@localhost ]# make

5.Install

[root@localhost ]# make install

6.Customize

[root@localhost ]# vi PREFIX/conf/httpd.conf

 

7.start and stop

[root@localhost ]# PREFIX/bin/apachectl start

[root@localhost ]# PREFIX/bin/apachectl stop



[火星人 ] 在CentOS 5.5 部署Apache HTTP伺服器 2.0已經有372次圍觀

http://coctec.com/docs/net/show-post-68216.html