Installation: Vmvare, CentOS, securecrtportable (free version)
Software address: https://share.weiyun.com/1da7a1853bc8f9b8375a1564842899f2 (password: zu6g)
3. Start configuration
1 open VMware, press action
Gateways can be set by themselves | Click OK after configuring. Then proceed as follows:
The gateway is consistent with the above
OK after configuration, then open VM
After opening, the start is complete. Enter your account password, and then:
192.168.100.10 can set it up for himself.
OK to get the address above, run the tool below
Completed after successful landing
Modifying The basic configuration of Linux
1. Modify Host Name
[Email protected] ~]# vim/etc/sysconfig/network Networking=yes Hostname=hadoop |
2. Modify The mapping of IP addresses and host names
[Email protected] ~]#vim/etc/hosts 192.168.100.10 Hadoop |
3. modify the IP address
[Email protected] ~]# vim/etc/sysconfig/network-scripts/ifcfg-eth0 Device=eth0 Hwaddr=00:0c:29:46:27:dd Type=ethernet uuid=fbe2f564-ac4e-4c10-b45c-5889f517d581 Onboot=yes Nm_controlled=yes Bootproto=static ipaddr=192.168.100.10 netmask=255.255.255.0 gateway=192.168.100.1 |
4.DNS Server Configuration
[Email protected] ~]# vim/etc/resolv.conf NameServer 192.168.100.1 |
5. Restart the network
[Email protected] ~]# service Network Restart Shutting down interface eth0: [OK] Close Loopback interface: [OK] Eject loopback interface: [OK] Popup interface eth0: [OK] |
6. Turn off the iptables and set its boot/no start
[[email protected] ~]# service iptables Stop Iptables: Set the chain to policy accept:filter [OK] Iptables: Clear Firewall rule: [OK] Iptables: Uninstalling module: [OK] |
Note: Execution shuts down the firewall and shuts down the firewall on boot
#查看防火墙状态service iptables Status
#关闭防火墙service iptables Stop
#查看防火墙开机启动状态chkconfig iptables--list
#关闭防火墙开机启动chkconfig iptables off
#开机启动防火墙chkconfig iptables on
7. Rebooting the system
[Email protected] ~]#reboot |
Basic configuration of Linux