找回密码
 注册
查看: 935|回复: 2

Apache及Samba的问题,谢谢!

[复制链接]
发表于 2006-6-13 10:55:20 | 显示全部楼层 |阅读模式
各位早呀.
我的系统是 RH AS4,在编译Apache及Samba后只能通过手工启动  apache及samba
apache的版全是:  httpd-2.2.2        
安装在:     /usr/local/apache/
#    /usr/local/apache/bin/apachectl start


samba的版本是:  Samba-3.0.23rc1
安装在:     /usr/local/samba/
#    /etc/rc.d/init.d/smbd start


当我想通过 chkconfig 来配置  httpd 及 smbd 自动启动时,输入下面的命令后,系统却提示说:  服务不支持chkconfig, 这是怎么回事呀?望各位给我解惑一下.谢谢!

[root@bluefish bin]# chkconfig --level 012345 httpd on
service httpd does not support chkconfig



[root@bluefish bin]# chkconfig --level 012345 smbd on
service smbd does not support chkconfig


另外:    当我想重启及停止samba时:     /etc/rc.d/init.d/smbd restart/stop   
         samba没有反应,停止命令过后还是可以使用   smbclient  这个命令测试.
发表于 2006-6-15 19:23:56 | 显示全部楼层
RPM包安装自启动方法:
vi /etc/rc.d/init.d/httpd
更改
#chkconfig: - 85 15

chkconfig: 2345 85 15
保存后使用
chkconfig -add httpd
后启动时自启动APACHE

源代码安装自启动方法:(LZ是好像是源代码安装)
vi apachectl
在第二行开始加入下面两行:
chkconfig: 2345 85 15
description: Apache is a World Wide Web Server
(两行都不能少,源于chkconfig工具程序的规则)
保存后使用
chkconfig -add apachectl
启动时会自启动APACHE服务器


当然如果LZ装有ntsysv的话,可以直接在NTSYSV里面加入想要自启动的服务或程序!
回复

使用道具 举报

发表于 2006-6-16 01:54:45 | 显示全部楼层
不知道为什么默认的脚本没有标识chkconfig~~~唉~~我也研究了半天
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-12 15:02 , Processed in 0.025792 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表