Home > Operation and Maintenance > Nginx > How to solve nginx: command not found issue

How to solve nginx: command not found issue

王林
Release: 2020-07-03 17:23:13
forward
8541 people have browsed it

How to solve nginx: command not found issue

Problem restoration:

(Recommended learning: nginx tutorial)

When executing the nginx stop command, the following error occurs:

How to solve nginx: command not found issue

Solution:

1. Open the file where the environment variables are located:

vim /etc/profile
Copy after login

2. At the end of the profile file, add the following Content

#指向你的nginx的安装位置的 sbin 目录
PATH=$PATH:/usr/local/nginx/sbin
Copy after login

3. Reload environment

source /etc/profile
Copy after login

Problem solved.

The above is the detailed content of How to solve nginx: command not found issue. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Error restarting nginx
From 1970-01-01 08:00:00
0
0
0
server - Nginx configuration webapp problem
From 1970-01-01 08:00:00
0
0
0
Nginx default.conf problem
From 1970-01-01 08:00:00
0
0
0
centos7 - NGINX exception occurs
From 1970-01-01 08:00:00
0
0
0
nginx load balancing
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template