One, yum one-click installation
#yum update packages yum update #yumClear cache records yum clean all #yum command to install software with one click yum install mysql-server #yum command to uninstall software with one click yum remove mysql-server
Second, compile and install (tar.gz, tar.xz and other files)
****************************************Software compilation and installation******* ******************************** #Download the software that needs to be installed wget http://org.apache.com/rabbitmq/download/rabbitmq-server-3.6.0.tar.gz Or manually download and upload to the linux server #Unzip the tar.gz file tar -zxvf rabbitmq-server-3.6.0.tar.gz #Enter the rabbitmq-server-3.6.0 folder cd rabbitmq-server-3.6.0 #Configuration: installation path, associated service path, etc. ./configure -prefix=/usr/local/memcached -with-libevent=/usr/local/libevent or ./config -prefix=/usr/local/memcached -with-libevent=/usr/local/libevent You can also not specify the installation path -prefix and use the default installation path #compile make #Install make install ****************************************Compiled and installed software uninstall****** **************************** # Just delete the rabbitmq-server-3.6.0 file!
ps: When make compiles, it reports: Nothing to be done for `all'. The documentation has already been compiled and does not need to be recompiled. If you want to recompile, you must first make clean to clear the previous compilation results, and then remake.
Third, the .bin file directly runs the installation
************************************Jdk installation example********* ******************************** #Give execute permission to the .bin file chmod +x jdk-6u38-linux-i586.bin #Install jdk to the /usr/local/ folder cd /usr/local/ #Execute the .bin file in the installation folder ./jdk-6u38-linux-i586.bin #After the installation is completed, a jdk1.6.0_38 directory will be generated in this directory, which is the installation directory of jdk ********************Configure Environment Variables************************** #Edit environment variable file profile vim /etc/profile #Add jdk configuration at the bottom of the file export JAVA_HOME=/usr/local/jdk1.6.0_38 export JAVA_BIN=/usr/local/jdk1.6.0_38/bin export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JAVA_HOME JAVA_BIN PATH CLASSPATH #Execute the profile file, the configuration will take effect immediately . /etc/profile 或 source /etc/profile ps: . and /etc/profile have spaces #Verify whether jdk is configured successfully Open the terminal, enter java -version, if the version information of java is displayed, it means the installation is successful