Basic configuration of Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.