In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about the use of linux's update-alternatives command to maintain the system command linker. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Update-alternatives is a tool dedicated to maintaining system command linkers in Debian systems. Through it, you can easily set which command and which software version the system uses by default. For example, two versions of open jdk and sun jdk are installed in the system, and we want the system to use sun jdk by default, which can be easily managed through update-alternatives.
Syntax format: update-alternatives [parameters] [command]
Common parameters:
Reference example:
Set your own installed JDK to the default JDK version:
[root@linuxcool ~] # update-alternatives-- install / usr/bin/java java/ usr/lib/jvm/java/bin/java 1070 [root@linuxcool ~] # update-alternatives-- install / usr/bin/javac javac / usr/lib/jvm/java/bin/javac 1070 [root@linuxcool ~] # update-alternatives-- install / usr/bin/jar jar / usr/lib/jvm/java/bin/jar 1070 [root@linuxcool ~] # update-alternatives-install / usr/bin/javah javah / Usr/lib/jvm/java/bin/javah 1070 [root@linuxcool ~] # update-alternatives-- install / usr/bin/javap javap / usr/lib/jvm/java/bin/javap 1070
Select the version of JDK we installed:
[root@linuxcool] # update-alternatives-- config java
Select the version of JDK we installed:
[root@linuxcool] # update-alternatives-- config java
List the names of the main candidates and their status:
[root@linuxcool ~] # update-alternatives-- get-selections on using linux's update-alternatives command to maintain the system command linker is shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.