Maison  >  Article  >  développement back-end  >  centOS6.3自启动nginx,php,hadoop

centOS6.3自启动nginx,php,hadoop

WBOY
WBOYoriginal
2016-06-23 13:44:50909parcourir

蓝色部分为文件的内容,橙色部分为新加的启动项目

[root@master bin]# cat /etc/rc.d/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.


touch /var/lock/subsys/local
/home/work/php/sbin/php-fpm start
/home/work/nginx/sbin/nginx
/home/work/hadoop/bin/start-all.sh
[root@master bin]# 
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn