免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9823 | 回复: 4
打印 上一主题 下一主题

我想问问service httpd restart;apacheclt -k start;这两个命令有什么区别? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-23 13:39 |只看该作者 |倒序浏览
4可用积分
我想问问service httpd restart;apacheclt -k start;这两个命令有什么区别?service iptables start和/etc/rc.d/init.d/iptables start有什么区别?

最佳答案

查看完整内容

不是apacheclt应该是apachectl -k start是apache 的 control如果是手动安装的apache,就要用这条命令,/usr/local/apache/bin/apachectl -k startapachectl -k {start|stop|restart}其实是跟rpm自动安装后的/etc/init.d/httpd {start|stop|restart}一样的service 是机器服务控制命令service httpd start 跟 /etc/init.d/httpd start 是一样的,都是打开httpd服务就像shutdown -h now 根 init 0 是一样的,一个道理start开启 stop终止 ...

论坛徽章:
0
2 [报告]
发表于 2007-10-23 13:39 |只看该作者
不是apacheclt
应该是apachectl -k start
是apache 的 control
如果是手动安装的apache,就要用这条命令,/usr/local/apache/bin/apachectl -k start
apachectl -k {start|stop|restart}
其实是跟rpm自动安装后的/etc/init.d/httpd {start|stop|restart}一样的
service 是机器服务控制命令
service httpd start 跟 /etc/init.d/httpd start 是一样的,都是打开httpd服务
就像shutdown -h now 根 init 0 是一样的,一个道理

start开启 stop终止 restart重新启动
这几个参数都是用于服务控制的

论坛徽章:
0
3 [报告]
发表于 2007-10-23 13:55 |只看该作者
大哥们帮帮忙啊,我只有4分,要不然我全给你们

论坛徽章:
0
4 [报告]
发表于 2007-10-23 14:12 |只看该作者
service httpd restart;    重起httpd

apacheclt -k start;      有这个命令吗?  应该是 httpd -k start   启动httpd

service iptables start      运行iptables

/etc/rc.d/init.d/iptables start    运行iptables


service    应该是方便管理 网络命令吧....

论坛徽章:
0
5 [报告]
发表于 2007-10-23 15:56 |只看该作者
谢谢你了,虽然分少还是收下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP