In some companies, developers do not have root permissions, but developers sometimes need to install some software. Can I install the software successfully without the root permission? The answer is yes. This document describes how to install nginx.
If you do not have the root permission, you often do not have the permission to operate some system directories, such as bin and USR. Therefore, during installation, you must install the installation file in a directory that the current user has the permission to operate.
To install nginx, download the installation file. The installation steps are as follows:
1. decompress the file after downloading the file:
Tar-zvxf nginx-1.2.3.tar.gz
2. Create the installation file directory, for example:
Cd ~ Mkdir nginx
3. Go to the directory where the installation files are stored after decompression, and configure
Cd xxx./configure -- prefix =/XXX/yy/nginx
4. Compile
Make
5. Install
Make install
Under normal circumstances, the installation is successful.
The difference between installation with root permission is that./configure needs to specify the directory of the Installation File.