我正在尝试使用 Vagrant 和 CentOS 6.5 基础盒提供一个开发盒。我希望 memcached 在系统启动/流浪时自动启动。
我尝试添加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 权限;所以该文件绝对是可执行的,但它似乎根本没有运行。