Welcome! Log In Create A New Profile


how to restart quickly in /etc/init.d

Posted by marimuthu 
how to restart quickly in /etc/init.d
July 15, 2019 10:04AM
Hello Devs,

Actually, I need to restart my nginx (/etc/init.d/nginx restart) for my own web-development work. I'm using ubuntu 16.04, nginx web-server, php7-fpm system. When I change any modification in php prg files, I need to restart nginx service command by running php ../../file_name.php (or) sh -x shell.sh.

But I cant restart the nginx within php / sh files except terminal / cron job. Could anyone suggest me how to restart nginx quickly within php / sh / any way without interrupting nginx.conf and php files.

Lot of Thanks in advance..

Marimuthu A
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready