service httpd start
来源:互联网 发布:适用于mac的办公软件 编辑:程序博客网 时间:2024/06/05 10:38
将apache当作系统服务用service httpd start启动之的方法:
[root@localhost ~]# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
[root@localhost ~]# chmod 700 /etc/rc.d/init.d/httpd
[root@localhost ~]# vi /etc/rc.d/init.d/httpd
在第三行加入(我不明白为啥要在第三行,呵呵,权当为了好看好了)
#Comments to support chkconfig on RedHat Linux
#chkconfig: 2345 90 90
#description:http server
chkconfig --add httpd
chkconfig --level 2345 httpd on
OK啦
[root@localhost ~]# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
[root@localhost ~]# chmod 700 /etc/rc.d/init.d/httpd
[root@localhost ~]# vi /etc/rc.d/init.d/httpd
在第三行加入(我不明白为啥要在第三行,呵呵,权当为了好看好了)
#Comments to support chkconfig on RedHat Linux
#chkconfig: 2345 90 90
#description:http server
chkconfig --add httpd
chkconfig --level 2345 httpd on
OK啦
- service httpd start
- httpd:unrecognized service 解决办法
- httpd: unrecognized service 的解决方案
- android service 之一 (start service)
- android service 之一 (start service)
- android service 之一 (start service)
- 选择 start service | bind service
- Start-Service 帮助信息
- start service at boot
- service monitd start
- android service-start
- linux: start a service
- service tomcatBash2 all start
- “service httpd does not support chkconfig” 問題
- service httpd does not support chkconfig
- service httpd does not support chkconfig linux
- centos 开启httpd service 出现ServerName error
- service httpd does not support chkconfig
- description: kgdb 远程调试实例
- C++中的构造函数小结
- win7 修改桌面的路径
- 常用语句
- asp程序错误详细说明例表
- service httpd start
- 一条sql添加分区过滤条件后cost反而上升
- 关于java.io.File类
- VC中如何让子对话框响应最大化、最小化、关闭等系统消息
- 使用printascii与printhex输出log到串口
- 数据库操作
- 静态包含与动态包含的区别
- UVA301- Transportation
- Aizu 1315 Gift from the Goddess of Programming 解题报告