Error description: 1. After installing Nginx (1.18.0) on Linux (CentOS 7 64) system, the sbin startup directory cannot be found. 2. Use Problem 1: No sbin directory is generatedTried the following solutions without success: Method 1: Download version 1.19 and reinstall it. I tried to install 1.19, but there is still no sbin directory. Method 2: A method found on the Internet: Find the file that reports an error, in the unzipped nginx file But I didn't find any error message in Problem 2: nginx -v failed to check the version numberSolution: Configure Nginx environment variables Execute the export NGINX_HOME=/usr/local/nginx export PATH=$PATH:$NGINX_HOME/sbin Execute Although there is no sbin, Nginx can still be started. Execute the It took me half a day to finally figure out where the problem was. Although the compressed package and the decompressed folder of Nginx are placed under the personal user, you can switch to the root user through So, you should Summarize:For those who are not familiar with Linux virtual machines, it is important to distinguish between root users and personal users . I hope that after avoiding this mistake, I will not make the same mistake again. //root root directory/usr/local/nginx //Personal user directory /home/wanjk/usr/local/nginx/ This is the end of this article about how to solve the problem that the sbin directory is not generated after Nginx is installed. For more information about Nginx not generating the sbin directory, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A brief discussion on Yahoo's 35 rules for front-end optimization
>>: The difference between html empty link href="#" and href="javascript:void(0)"
I won’t talk about the use of SSL certificates. F...
Table of contents Effect display Code Link Key Co...
Table of contents Preface think Library directory...
Table of contents vue2.x vue3.x tiny-emitter plug...
Table of contents 1. Download steps 2. Configure ...
Nginx (engine x) is a high-performance HTTP and r...
Table of contents The use of Vue's keep-alive...
max_allowed_packet is a parameter in MySQL that i...
Table of contents iview-admin2.0 built-in permiss...
background: Because the server deployed the flask...
Suddenly when I logged into MySQL, it said that a...
1. IE8's getElementById only supports id, not ...
Two ways to navigate the page Declarative navigat...
Today's Tasks 1. Choice of Linux distribution...
The most significant website change in 2011 was Go...