SSH启动apache (转载)

首先工具用的是 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值