我爱编程

linux设置开机启动

2018-04-02  本文已影响0人  醉于麦田

有些服务器,需要设置开机启动,如一些缓存服务,memcache,redis等等。svn等等!

下面是我自己的一些开机启动项!

写下来,自己以后不记得了,可以查看!

linux的rc.local文件

/etc/init.d/mysqld start

/etc/init.d/nginx start

/etc/init.d/php-fpm start

/etc/init.d/vsftpd start

/alidata/server/memcached/bin/memcached -d -m 64M -u root -l 127.0.0.1 -p 11211 -c 256 -P /tmp/memcached.pid

/usr/bin/svnserve -d -r /alidata/svndata/

/alidata/server/redis-4.0.1/src/redis-server

/var/swapfile swap swap defaults 0 0

上一篇 下一篇

猜你喜欢

热点阅读