07:OneinStack 1.7 - 如何管理服务?

邱淑贞,好用


Nginx/Tengine/OpenResty: 

service nginx {start|stop|status|restart|reload|configtest}


MySQL/MariaDB/Percona:

service mysqld {start|stop|restart|reload|status}


PostgreSQL:

service postgresql {start|stop|restart|status}


MongoDB:

service mongod {start|stop|status|restart|reload}


PHP:

service php-fpm {start|stop|restart|reload|status}


HHVM:

service supervisord {start|stop|status|restart|reload}


:hhvm进程交给supervisord管理,了解更多请访问《Supervisor管理hhvm进程》


Apache:

service httpd {start|restart|stop}


Tomcat:

service tomcat {start|stop|status|restart}


Pure-Ftpd:

service pureftpd {start|stop|restart|status}


Redis:

service redis-server {start|stop|status|restart|reload}


Memcached:

service memcached {start|stop|status|restart|reload}