First, the environment
1. Host:Windows ten
2. virtual machine:vmware14 + CentOS 7-64
(1)Vmware14 Baidu Search can be downloaded, such as:
The installation process is a little, self-activating.
(2)CentOS 7-64 download URL (here blue tag Select Install Ali provide image):http://isoredirect.centos.org/ Centos/7/isos/x86_64/centos-7-x86_64-dvd-1708.iso
Second, installation
1. process such as:
Ctrl+alt: Exiting the virtual machine interface
Set up a network
failure:vi/etc/ssh/sshd_config
Let go Port, ListenAddress (2), Permitrootlogin
No more, Baidu
Third, install other software
1.jdk
view:Yum Search Java|grep JDK
Installation:yum install JAVA-1.8.0-OPENJDK
Configuration environment variable:vi/etc/profile(self-Baidu)
Save settings:source/etc/profile
Verification:Java-version
2. installing lrzsz
Yum Install Lrzsz
3. Install Tomcat
/home upload tomcat:rz apache-tomcat-9.0.7.tar.gz(windows Download the good)
decompression:TAR-XZVF apache-tomcat-9.0.7.tar.gz
/home/apache-tomcat-9.0.7 path start:sh bin/startup.sh
View boot log under/home/apache-tomcat-9.0.7 path:tail-f logs/catalina.out
visit:Curl localhost:8080
4. View Firewall (firewall)
View all:firewall-cmd--list-all
View port:firewall-cmd--zone=public--list-ports
Open 8080 port:firewall-cmd--zone=public--add-port=8080/tcp--permanent
Remove 8080 port:firewall-cmd--zone= public--remove-port=80/tcp--permanent
Reload:firewall-cmd--reload
5.windows access to Linux Services
Open Google Chrome in Windows, enter:${ip}:8080
${IP}: for IP in virtual machine
VMware installs CentOS 7-64