Linux software installation

1. Install jdk:

Before installing, check whether the system has its own open-jdk.

Order:

rpm -qa | grep java rpm -qa | grep jdk rpm -qa | grep gcj

If no information is entered, it means that it is not installed.

If installed you can use:

rpm -qa | grep java | xargs rpm -e --nodeps // batch uninstall all files with java

Then install jdk:

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

Finally, check whether the installation was successful:

java -version

This is the end of the installation. One advantage of this installation is that there is no need to set the path, it is set automatically.

 

2. Install tomcat:

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

Related commands:

service tomcat start //Start tomcat service tomcat stop //Stop tomcat tail -f logs/catalina.out //See the console output of tomcat ps -ef |grep tomcat //See if tomcat is already running kill -9 pid( The process number corresponding to tomcat) //kill tomcat

 

3. Install git:

git --version //Check whether the system has installed git yum install -y git //Install yum remove git //Uninstall git

 

4. Install Maven:

In the Linux operating system, we often use wget to download files.

wget is very stable, it has a strong adaptability in the case of very narrow bandwidth and unstable network.

When using wget in linux, if -bash: wget: command not found is reported, it means that 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.repo yum -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 does centos7 check that nginx has been installed:

If your nginx is installed by rpm package, use the following command directly:

nginx -V  

If you compile and install the source package, if your installation path is /usr/local/nginx, then you can use:

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

Note the capital V so you can see the modules that nginx has loaded.

 

Turn off the firewall:

systemctl stop firewalld.service //stop the firewall systemctl disable firewalld.service //prohibit the firewall to start and start firewall-cmd --state //check the default firewall status (notrunning is displayed when it is closed, and running is displayed when it is opened)

 

How to view the installation directory of YUM in Linux:

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324886040&siteId=291194637