首頁  >  文章  >  後端開發  >  centOS6.3自启动nginx,php,hadoop

centOS6.3自启动nginx,php,hadoop

WBOY
WBOY原創
2016-06-23 13:44:50907瀏覽

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

[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]# 
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn