Apache/nginx startup, stop, and restart commands
Linux apache startup, stop, and restart commands: the basic operation method is as follows: assume that your apahce installation directory is/usr/local/apache2. These methods are suitable for apahce startup commands in any situation: it is recommended that/usr/local/apache2/bin/apachectl start apaceh start apache stop command/usr/local/apache2/bin/apachectl stop apache restart command: /usr/local/apache2/bin/apachectl restart to restart the Apache server without interrupting the current connection, run: /usr/local/sbin/apachectl graceful if apache is installed as a linux service, run the following command: service httpd start service httpd restart service httpd stop service linux nginx start, stop, restart command: basic operation method: this document assumes that your apahce installation directory is/usr/local/nginx. These methods are suitable for nginx startup commands in any case:/usr/local/nginx close command: /usr/local/nginx-s stop nginx check configuration file command:/usr/local/nginx-t