【发布时间】:2015-08-17 13:40:43
【问题描述】:
我正在尝试使用 Vagrant 和 CentOS 6.5 基本框配置一个开发框。我希望 memcached 在系统启动/vagrant up 时自动启动。
我已尝试将memcached -d -l localhost -p11211 添加到 /etc/rc.d/rc.local,但这不起作用。
我也尝试过添加到 /etc/init/vagrant-mounted.conf
start on vagrant-mounted
memcached -d -l localhost -p11211
[编辑]
我已将/etc/rc.d/rc.local 更新为现在使用以下内容
chkconfig memcached on
service memcached start
我在 /var/log/boot.log 中没有看到任何内容。看起来 rc.local 根本没有运行。它具有 ugo+x 权限;所以该文件绝对是可执行的,但它似乎根本没有运行。
【问题讨论】:
-
类似问题和更多信息在这里:serverfault.com/questions/201981/…