In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about the installation directory of the software in linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
There are several software installation directories for linux, with / usr/local, / opt, and executables installed through the package manager in the / usr/bin directory.
/ opt
The optional programs are mainly stored here. Do you want to try the latest firefox beta? Then install it in the / opt directory so that when you finish trying and want to delete firefox, you can delete it directly without affecting any other settings in the system. For a program installed in the / opt directory, all its data, library files, and so on are placed in the same directory.
For example: the beta version of firefox just installed can be loaded into the / opt/firefox_beta directory, and the / opt/firefox_beta directory contains all the files, libraries, data, and so on needed to run the firefox. To delete firefox, you only need to delete the / opt/firefox_beta directory, which is very simple.
/ usr/local
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. I think it's a good idea to let the package manager manage the / usr directory and put the custom scripts (scripts) under the / usr/local directory.
Summary
Install 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.
After reading the above, do you have any further understanding of the installation directory of the software in linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.