您的位置:首页 > 博客中心 > 数据库 >

[Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04

时间:2022-03-10 17:15

[nginx]

Step 1

Download the shell script

wget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginx

Step 2

chmod +x /etc/init.d/nginx

Step 3

modify the code marked with red color to your configure

gxlsystem.com,布布扣

Step 4

vi /etc/rc.local

add the code 

service nginx start

 

 

[php-fpm]

Step 1

cp -f (php -5.4.x-source-dir)/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

Step 2

chmod +x /etc/init.d/php-fpm

Step 3

vi /etc/rc.local

add the code 

service php-fpm start

 

 

[mysql]

Step 1

cp /path/to/your/mysql/support-files/mysql.server /etc/init.d/mysql

Step 2

vi /etc/rc.local

add the code 

service mysql start

 

Have fun with Ubuntu!

[Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04,布布扣,bubuko.com

热门排行

今日推荐

热门手游