Update-alternatives is a script for switching between multiple commands of the same type and can be installed in Debian via the Apt-get install dpkg. Before explaining the details of Update-alternatives, let's take a look at the examples already in the system. Open the terminal and execute the following command:LsResults: lrwxrwxrwx 1 root root 2011-03-12 15:20/usr/bin/java-/etc/
of cacti ntopCd/root/downloadwget http://docs.cacti.net/_media/plugin:ntop-v0.2-1.tgzMV Plugin:ntop-v0.2-1.tgz ntop-v0.2-1.tgzTar zxvf ntop-v0.2-1.tgz-c/var/www/html/cacti/plugins/vi/var/www/html/cacti/include/config.php$plugins [] = ' ntop ';In plugin Management "Install and enable pluginsIn user management, check the view NtopSet the URL in Settings, misc:http
Recently, a cacti monitoring is configured in windows.
Installation Package for Windows: http://forums.cacti.net/about14946.html
Note the following:
1. Change the time to China time
Add the following functions to the cacti/inclde/gloabl. php file:
Date_default_timezone_set ('Asia/Shanghai ');
2. In setting --> poller type, select spine.
3. In setting --> poller --> maximum concurrent po
For the newly installed cacti, in order to detect the accuracy of the monitoring data, as well as with the rrdtool generated by the statistical map to the official show so beautiful, can not wait to click on the tab in the image of a column. The results of the following situation, that is, cacti generation with Chinese pictures have garbled. The RRDtool I installed is the 1.4.5 version.
In order to solve t
By default, even with Java 1.6 version Java script jdk-6u31-linux-i586.bin, when Java is installed, it will automatically upgrade to a 1.7 version state. For some applications that need to be run based on version 1.6, a downgrade of 1.6 is required. There are two specific ways to do this:1. Use the alternatives command to implement.Alternatives is a powerful command under Linux, and can only be executed under root authority. If there are several comma
Setting and thresholds two plug-ins are cacti more important two plugins. setting is mainly responsible for sending mail, thresholds mainly to monitor the value of the set threshold, over the threshold to send alarm mail. Because two plug-in function has the correlation--setting not set up the thresholds alarm mail function will have the problem. So put it together for illustration. The setting function is simple, basically is the mail sends the setti
Use alternatives to convert the java version-general Linux technology-Linux programming and kernel information. The following is a detailed description. After jdk was installed, java and javac were replaced with the java and javac of gij in/usr/bin.
Some people on the Internet said that they could use a tool named alternativs to migrate the software version in linux. They decided to use alternatives to mig
Since the development of Linux, there have been a lot of available software. In this way, some software functions are basically the same. For example, there are nvi, Vim, emacs, and nano in the editor. What I'm talking about is only part of it. In most cases, software with similar functions is installed in the system at the same time and can be executed using their names. For example, to execute vim, you only need to input Vim in the terminal and press Enter. However, in some cases, we need to u
Tian haili @ csdn
Different Android platforms use different JDK versions during compilation. For example, froyo (2.2) and its earlier versions require JDK; gingerbread and later versions require JDK. If you want to build different platform projects in an environment, you need to install different JDK. It takes time and effort to install JDK repeatedly during project switching. Update-alternatives provides a solution for this situation.
This article
Update-alternatives is a tool dedicated to maintaining the system command link in the Ubuntu system, which makes it easy to set which command the system uses by default, which software version, for example, we have both open jdk and Sun JDK Two versions installed in the system. And we want the system to use the sun JDK by default, what should we do? Through the update-alternatives can be very convenient to
http://persevere.iteye.com/blog/1479524Update-alternatives is a tool dedicated to maintaining the system command link in the Ubuntu system, which makes it easy to set which command the system uses by default, which software version, for example, we have both open jdk and Sun JDK Two versions installed in the system. And we want the system to use the sun JDK by default, what should we do? Through the update-alterna
Up vote 1 down vote favorite
I typed:sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/ jdk1.8.0/bin/java" 1It ' s says alternatives--install needs link name path priorityCommand-Line Edubuntu
ShareImprove this question
Edited Jul 5 ' + at 17:48 Guntbert4,344
Asked Jul 5 ' + at 16:22 Swapnil18
Cacti installed, you can configure how to monitor!
When the first landing cacti request username is admin Password is admin request Change password
Below we will be on the public network of a running switch to do traffic monitoring (the monitored objects need to open the SNMP service)Click Devices--------then click Add to add
Description: This is the display name of our custom monitor objectHostnam
Article 35: Consider alternatives other than the virtual function
Article 35 consider alternatives other than the virtual function
Realizing template method mode by Non-virtual interface technique
Implementing strategy mode with function pointers
Complete strategy mode with Tr1function
The classical strategy model
Summary
Virtual func
View the location of the Java commandFind the soft link location for/etc/alternatives/javaIt allows us to see all the optional commands for a command. Execute code:There are two types of alternative: automatic and manual. The initial state of each alternative is automatic, and if the system discovers that the administrator has manually modified a alternative, its status is automatically changed to manualView the current Java versionMy JDK is in this f
Previously, the jdk of ubuntu was installed with the apt-get install command. The default installation is openjdk, and the path is/usr/lib/jvm /. If you need to switch or upgrade the java version, you can use update-alternatives. Of course, you can uninstall and reinstall it, or you can install it by setting environment variables. This section describes how to install update-alternatives.Since the development of Linux, there have been a lot of availab
In the past two days, I wanted to develop the android development environment in Linux, But I encountered a big problem when installing Sun's Java 6.
The source cannot be found.
The final installation method is to download the binfile of Java 6 on the official website, modify the/etc/profile file, and specify the location of Java, so that the Java command is available.
Then you need a command to specify which software the Java command is provided, that is, the default software. The reason for th
I. Functional roleUpdate-alternatives is a utility for dpkg that maintains symbolic links to system commands to determine what commands the system uses by default.In the Debian system, we may install a number of similar programs and optional configurations, such as Web browser programs (firefox,konqueror), window managers (Wmaker, metacity), and different themes for the mouse. In this way, users can choose when they are using the system to meet their
Personal blog Address: http://www.cnblogs.com/wdfwolf3/Update-alternatives is a command that Ubuntu systems use for software version switching. For example, there are several versions of the JDK in the system that map the directories of these commands to a system directory as a link, then manage them through update-alternatives and set the default startup version. With update-
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.