The default installation path for installing an application in Linux

Source: Internet
Author: User
When you install an application in Linux, the default installation path is/usr. Generally, there is no choice, unless you do not want to use this program & hellip; the installation method is generally: 1. rpm or deb software package. you can simply double-click to install it, of course it is better to do so... when you install an application in Linux, the default installation path is/usr. Generally, there is no choice, unless you don't want to use this program ...... The installation method is generally: 1. rpm or deb software package. you can install it by double-clicking it. of course, a better way is to install it directly in the software manager of the system, in this way, you can automatically download and install from the Internet. 2. binrun and other files. this is an executable file. you only need to grant the executable permission to run the file. 32.16.tar.bz2 .tar.gz. The two are source code and must be compiled and installed in the compiling environment. As for the installation path, it is recommended that you do not consider it for the moment. The Linux Directory has a unified specification, which is used to ensure that any software can find any other software or file, generally, files that can be run are stored in/bin or/usr/bin, library file/lib, or/usr/lib. other files also have their own places. --------------------------------------------------------------------------- You can use the compile mode to install software. /configure -- prefix = xxx to specify the installation directory. if the installation is in rpm Mode, the installation directory cannot be specified, but you can use locate or whereis to find the installation directory after installation. PS: 1. after the installation is complete, you can view some software startup commands with the-V parameter. For example: nginx-V 1 [root @ 11_09 nginx-1.4.2] #/usr/local/nginx/sbin/nginx-V2nginx version: nginx-1.4.23built by gcc 4.1.2 20080704 (Red Hat 4.1.2-51) 4TLS SNI support disabled5configure arguments: -- user = www -- group = www -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-http_ssl_module -- with-http_gzip_static_module -- within the configur file in the --with-000062426tar.bz2 .tar.gz source package, there is a default installation path. For example, the configure file/usr/local/nginx in the nginx-1.4.2.tar.gz source package. 01 case ". $ NGX_PREFIX "in02 .) 03 NGX_PREFIX =$ {NGX_PREFIX:-/usr/local/nginx} 04 have = NGX_PREFIX value = "\" $ NGX_PREFIX /\"". auto/define05; 06 07 .!) 08 NGX_PREFIX = 09; 10 11 *) 12 have = NGX_PREFIX value = "\" $ NGX_PREFIX/\ "". auto/define13; 14 esac
Related Article

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.