VMware install CentOS 7-64

1. Environment

1. Host: windows 10

2. Virtual machine: vmware14 + CentOS 7-64

( 1 ) Vmware14 Baidu search can be downloaded, as shown below:

 

The installation process is omitted, and it is activated by itself.

( 2 ) CentOS 7-64 download URL (the blue mark here chooses to install the mirror provided by Ali): http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708. iso

2. Installation

1. The process is as follows:

Ctrl+Alt : Exit the virtual machine interface

Failed: vi /etc/ssh/sshd_config  

Release Port, ListenAddress (2), PermitRootLogin

If not, Baidu

 

3. Install other software

1.jdk

Check out: yum search java|grep jdk

Installation: yum install java-1.8.0-openjdk

Configure environment variables: vi /etc/profile (self-Baidu)

Save settings: source /etc/profile

Verify: java -version

2. Install lrzsz

yum install lrzsz

3. Install tomcat

/home upload tomcat : rz apache-tomcat-9.0.7.tar.gz ( windows downloaded)

Unzip: tar -xzvf apache-tomcat-9.0.7.tar.gz

Start under the path of /home/apache-tomcat-9.0.7 : sh bin/startup.sh

View the startup log in the /home/apache-tomcat-9.0.7 path: tail -f logs/catalina.out

Access: curl localhost:8080

4. Check the firewall ( firewall )

See all: firewall-cmd --list-all

View ports: firewall-cmd --zone=public --list-ports

Open port 8080 : firewall-cmd --zone=public --add-port=8080/tcp --permanent

Remove port 8080 : firewall-cmd --zone= public --remove-port=80/tcp --permanent

Reload: firewall-cmd --reload

4. Windows access Linux services

Open Google Chrome in Windows and enter: ${IP}:8080

${IP}: is the IP in the virtual machine

 

Guess you like

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