Notes-Linux software installation, notes-linux software installation

Source: Internet
Author: User

Notes-Linux software installation, notes-linux software installation

1. Install jdk:

Before installation, check whether the system has an open-jdk.

Command:

rpm -qa |grep javarpm -qa |grep jdkrpm -qa |grep gcj

If no information is entered, the installation is not performed.

For installation, you can use:

Rpm-qa | grep java | xargs rpm-e -- nodeps // Uninstall all files with Java in batches

Then install jdk:

// First retrieve the list containing java yum list java * // then retrieve the list of 1.8 yum list java-1.8 * // and install all the files of 1.8.0 yum install java-1.8.0-openjdk *-y

Finally, check whether the installation is successful:

java -version

The installation is complete. One advantage of this installation is that you do not need to set the path and set it automatically.

 

2. install tomcat:

Http://www.mamicode.com/info-detail-1851076.html

Related commands:

Service tomcat start // start tomcatservice tomcat stop // stop tomcattail-f logs/catalina. out // check tomcat console output ps-ef | grep tomcat // check whether tomcat is running kill-9 pid (tomcat process ID) // kill tomcat

 

3. Install git:

Git -- version // check whether the system has installed gityum install-y git // install yum remove git // uninstall git

 

4. Install Maven:

In linux, wget is often used to download files.

Wget is very stable. It has strong adaptability to unstable networks with narrow bandwidth.

When wget is used in linux, if-bash: wget: command not found is reported, wget is not installed and needs to be installed. The installation command is as follows:

yum -y install wget 

Start installation:

wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repoyum -y install apache-maven   

 

5. Install Nginx:

Http://blog.csdn.net/ysydao/article/details/51388385

Http://www.linuxidc.com/Linux/2017-04/142986.htm

How can I check if nginx has been installed on centos7:

If you install nginx with an rpm package, run the following command:

nginx -V  

If you are compiling and installing the source code package and your installation path is/usr/local/nginx, you can use:

/usr/local/nginx/sbin/nginx -V

Note that it is written in uppercase, so that you can see the modules loaded by nginx.

 

Disable Firewall:

Systemctl stop firewalld. service // stop firewallsystemctl disable firewalld. service // disable firewall from starting firewall-cmd -- state // view the default firewall Status (notrunning is displayed after it is disabled, and running is displayed after it is enabled)

 

In Linux, how does one view the YUM installation directory:

Http://www.cnblogs.com/kerrycode/p/6924153.html

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.