1.让系统默认启动的时候执行rc.local 启动我们想要启动进程;如:nginx ,memcached,或者是 php-fpm等!
/usr/local/bin/redis-server /etc/redis.conf
/usr/local/bin/nginx
/usr/local/bin/php-fpm
su daokr -c "/usr/local/bin/memcached -d -m 256 -u daokr -l localhost -p 11200 -c 1024 -P /tmp/memcached.pid"