安装apache2.2
# 安装
# cd /usr/local/src # wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.31.tar.gz # tar zxvf httpd-2.2.31.tar.gz # cd httpd-2.2.31 # ./configure --prefix=/usr/local/src/apache # make && make install
修改配置指定service
# cp /usr/local/src/apache/bin/apachectl /etc/init.d/httpd # vim /etc/init.d/httpd
修改第二行,在第二行添加
# chkconfig:- 85 15 # description: Apache is a World Wode Web server.It is used to server # HTML files and CGI
修改httpd.conf
# vim /usr/local/src/apache/conf/httpd.conf
添加
ServerName localhost:80
启动
# service httpd start
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步