In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
When I install software on linux, I always have the idea of which directory the software is installed in. Because the linux system is different from the Windows system, it is not necessary to create a folder on that disk and install the programs you need to install to the specified directory. The linux directory is similar to a tree, with its root directory at the top, and each directory has its own different role.
Linux software installation directory is also fastidious, the correct choice of installation directory is beneficial to system management, here explain the difference between the program installation directory / opt directory and / usr/local directory.
I. opt directory
The / opt directory, which is used to install additional packages, is a user-level program directory that can be understood as D:/Software. For a program installed in the / opt directory, all its data, library files, and so on are placed in the same directory. Opt has an optional meaning, here can be used to place third-party large software (or games), when you do not need, just rm-rf off. When the hard disk capacity is not enough, you can also mount / opt to other disks separately.
For example:
2. / usr/local directory
/ usr: system-level directory, which can be understood as C:/Windows/.
/ usr/lib: understood as C:/Windows/System32.
/ usr/local: user-level program directory, which can be understood as C:/Progrem Files/. Software compiled by users will be installed in this directory by default.
The main storage here is for software that is installed manually, that is, software that is not installed through Synaptic or apt-get. It has a similar directory structure to the / usr directory. Let the package manager manage the / usr directory and put the custom scripts (scripts) under the / usr/local directory.
III. Summary
In fact, the installation of software programs does not have to be completed in the specified directory, the installation of java, tomcat, etc., can also be installed in the opt directory, but the expansibility and management of the installer, easy to use is the best. To sum up, the opt directory and the usr/local directory are the directories where you install the software under / usr/local, which is equivalent to the programefiles directory under windows. / opt is the directory where some large software is installed, or where some service programs are installed.
The above is the difference between the linux program installation directory / opt directory and / usr/local directory introduced by the editor. I hope it will be helpful to you. If you have any questions, you are welcome to leave a message and the editor will reply you in time!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.