首先工具用的是 SSH Secure Shell
介绍几个Linux命令。
wherei1s 能找到你要找的东东在哪。 比如:
# whereis httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /usr/sbin/httpd.event /etc/httpd
/usr/lib/httpd /usr/include/httpd /usr/share/man/man8/httpd.8.gz
找到httpd进程程序之所在
ps -ef|grep httpd
找到apachectl
whereis apachectl
重启apache
/usr/sbin/apachectl restart
检测conf文件有没有错
/usr/sbin/apachectl -t
对服务的操作:
# whereis service
service: /sbin/service /usr/share/man/man8/service.8.gz
或重启httpd服务
/sbin/service httpd restart
(以上路径根据安装时的路径而定)
Apache
service httpd start 启动
service httpd stop 关闭
service httpd restart 重新启动
/etc/init.d/httpd restart
介绍几个Linux命令。
wherei1s 能找到你要找的东东在哪。 比如:
# whereis httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /usr/sbin/httpd.event /etc/httpd
/usr/lib/httpd /usr/include/httpd /usr/share/man/man8/httpd.8.gz
找到httpd进程程序之所在
ps -ef|grep httpd
找到apachectl
whereis apachectl
重启apache
/usr/sbin/apachectl restart
检测conf文件有没有错
/usr/sbin/apachectl -t
对服务的操作:
# whereis service
service: /sbin/service /usr/share/man/man8/service.8.gz
或重启httpd服务
/sbin/service httpd restart
(以上路径根据安装时的路径而定)
Apache
service httpd start 启动
service httpd stop 关闭
service httpd restart 重新启动
/etc/init.d/httpd restart
本文介绍了在Linux环境下如何使用常见的命令行工具管理和操作Apache服务。包括查找Apache相关文件的位置、启动、停止、重启服务以及检查配置文件的有效性等实用技巧。
3377

被折叠的 条评论
为什么被折叠?



