Linux does not have root permission to install software

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.