centOS下服务启动

时间:2021-01-28 16:29:30

nginx应该在mongodb之后启动,也可以通过chkconfig <服务名> on将服务设置为开机自启动。具体命令如下

service mysql start

service memcached start

service fpm start

service image-server start

service mongodb start

service nginx start

chkconfig mysql on

chkconfig memcached on

chkconfig fpm on

chkconfig image-server on

chkconfig mongodb on

chkconfig nginx on