免费注册 查看新帖 |

Chinaunix

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

从6.1升级到6.3后,/usr/local/etc/rc.d下的脚本无法自动启动了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-25 08:55 |只看该作者 |倒序浏览
在/etc/rc.conf中已设置
mysql_enable="YES"
pureftpd_enable="YES"
nginx_enable="YES"

/usr/local/etc/rc.d
中也存在这些脚本

-r-xr-xr-x 1 root wheel 1659 Jan 24 23:07 mysql-server.sh
-r-xr-xr-x 1 root wheel 2302 Jan 21 16:01 nginx.sh
-r-xr-xr-x 1 root wheel 1623 Aug 19 2006 pure-ftpd.sh

网上查了一下,说是是.sh才能自动启动,改成了.sh,结果也是不行啊。。。

从6.1升级到6.3是按下面步骤做的
To rebuild everything and install it on the current system.
-----------------------------------------------------------
# Note: sometimes if you are running current you gotta do more than
# is listed here if you are upgrading from a really old current.

<make sure you have good level 0 dumps>
make buildworld
make kernel KERNCONF=YOUR_KERNEL_HERE
[1]
<reboot in single user> [3]
mergemaster -p [5]
make installworld
make delete-old
mergemaster [4]
<reboot>

论坛徽章:
0
2 [报告]
发表于 2008-01-25 11:01 |只看该作者
rc.conf里既然已经设置了为什么还要在rc.d下还要做呢

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
3 [报告]
发表于 2008-01-25 13:15 |只看该作者
vi /etc/rc.conf & add following line

local_startup="/usr/local/etc/rc.d

论坛徽章:
0
4 [报告]
发表于 2008-01-25 16:29 |只看该作者
原帖由 zero-B 于 2008-1-25 13:15 发表
vi /etc/rc.conf & add following line

local_startup="/usr/local/etc/rc.d


6.3下一定要加入这个吗?

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
5 [报告]
发表于 2008-01-25 18:54 |只看该作者
我不知道,反正我make world之后它就在里面了,最重要的是它能达到你的目的。

论坛徽章:
0
6 [报告]
发表于 2008-01-25 22:12 |只看该作者
原帖由 zero-B 于 2008-1-25 18:54 发表
我不知道,反正我make world之后它就在里面了,最重要的是它能达到你的目的。


那我编译完怎么没有你说的这个? 真是奇怪了

论坛徽章:
0
7 [报告]
发表于 2008-01-26 17:02 |只看该作者
重新make installworld又好了,真是奇怪
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP