Record an experience
error will be copied to the local company projects a virtual machine running when it happened, said the issue of online solutions are many, because of the linux system is not familiar, the first time a vmware virtual machine and install linux system configuration / etc / sysconfig / network-scripts / ifcfg-ens33 and etc / hosts file, copy the configuration / from the internet, do not know how to modify, according to the online copy down, linux is normal can be started, and with SecureCRTPortable, xshell so the tool can also be connected properly to begin linux embark on this road of no return.
Problems found
when my computer is connected to the phone hotspots, virtual machine can access the Internet, but this machine and the virtual machine address each other can ping, but if you use a corporate network does not pass, by chance found that if the first start linux, in the open net and found each other normally can ping the ip address, access to the Internet. So be happy that on the road to learning linux.
Software installation
and quickly install and configure jdk tomcat, can not wait to try the hand, this pretty smoothly, quickly, first restful + spring + mybatis project can start, continue the installation nginx, also can run smoothly, the project due dubbo need to rely zookeeper, then followed by the installation of a zookeeper, but when you start dubbo project, they encountered problems ip address into chaos, leading consumers can not find providers, a lot of online search, engage in this period also solves the project jetty run, packed into the server until 404, should be the cause of an address space of it, to 1:00, dubbo the problem is not resolved, then the next day, I'll take a look at how companies can, looked at the company's ifcfg-ens33 file, configuration, and I found that he is not the same,
This is my best start of the configuration
TYPE = "Ethernet" # network type is Ethernet BOOTPROTO = "static" # manually assign ip NAME = "ens33" # NIC device name, device name must be used with the same file name DEVICE = "ens33" # NIC device name, device name It must be used with the same file name ONBOOT = "yes" # whether the card with the network service boot IPADDR = "192.168.220.101" # ip address of the network card that you want to configure fixed IP, if you want to use tools such as xshell connection, this 220 the best segment and consistent your own computer network, or they may use xshell connection failed gATEWAY = "192.168.220.2" # gateway NETMASK = "255.255.255.0" # subnet Mask DNS1 = "8.8.8.8" # DNS , IP address, DNS server 8.8.8.8 is free provided by Google
After watching the company reconfigured
// = 192.168.64.255 BROADCAST DEFROUTE = yes UUID = 5fb06bd0-0bb0-7ffb-45 f 1-d6edd65f3e03 the TYPE = "Ethernet" # network type is Ethernet BOOTPROTO = "static" # manually assign ip NAME = "ens33" # NIC device name , the device name must be used with the same file name dEVICE = "ens33" # NIC device name, device name must be used with the same file name ONBOOT = "yes" # whether the card with the network service boot IPADDR = "192.168.168.129" # the NIC ip address that you want to configure fixed IP, if you want to use tools such as xshell connection, this network of 220 best and consistent your own computer network, or they may use xshell connection failed gATEWAY = "192.168.64.1" # gateway NETMASK = "255.255.255.0" # Subnet Mask DNS1 = "8.8.8.8" # DNS, IP address 8.8.8.8 is free DNS server provided by Google
I think the problem mainly in
IPADDR="192.168.168.129" ATEWAY="192.168.64.1"
Ip address can be seen walking on the machine
linux command: ifconfig
In the configuration / etc / hosts file
View hostname command: hostname
[root@hejj network-scripts]# hostname hejj.com
After reconfiguration, I found the Internet a good question, and then became duboo registered address 192.168.64.129, this problem is solved,
also reported a new error, Host * IS not allowed to Connect to the this MySQL Server , but this mysql of access becomes a problem
Problem Solution
use mysql; select 'host' from user where user='root'; select host, user from user;
Remember, mysql to restart to take effect, then restart mysql, it really can be visited, to this, a number of issues have been resolved.