系统上已经缺省安装了两个版本的apache:
进入/etc/目录能看到两个apache目录
进入/usr/目录能看到两个apache目录
利用tab键查看
bash-3.00# cd /etc/apache
apache/ apache2/
bash-3.00# cd /usr/apache
apache/ apache2/
复制配置文件:
bash-3.00#cd /etc/apache
启动:
bash-3.00# /etc/init.d/apache start
httpd starting.
bash-3.00# /usr/apache/bin/apachectl start: httpd started
关闭
bash-3.00# /etc/init.d/apache stop
httpd stopping.
bash-3.00# /usr/apache/bin/apachectl stop: httpd (no pid file) not running
服务状态可用下面命令检查:
bash-3.00#svcs -a |grep apache
用浏览器访问。