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)"
Table of contents Preface JS Magic Number Storing...
There are some issues that are not limited to Vue...
1. Mental Journey When I was writing the cockpit ...
Introduction To put it simply, tcpdump is a packe...
background The amount of new data in the business...
Detailed explanation of the usage of DECIMAL in M...
During normal project development, if the MySQL v...
This article shares the MySQL installation and co...
【Foreword】 Recently I want to stress test ITOO...
【author】 Liu Bo: Senior Database Manager at Ctrip...
This article shares the specific code of vue+echa...
First, you need to determine which fields or fiel...
1. Unzip nginx-1.8.1.tar.gz 2. Unzip fastdfs-ngin...
I use the simultaneous interpretation voice recog...
Container lifecycle The life cycle of a container...