CentOS configuration--Common commands

Source: Internet
Author: User

March 6, 2017 11:43:07

1. Operating level of the Chkconfig management program

Such as: Set firewall default does not open

Chkconfig--level iptables off Run Level 3 (command line), 5 (interface) does not open iptables 2. Configure network card virtual machine network card mode bridge Connect yourself manually set IP configuration network card

cd/etc/sysconfig/network-scripts
------
[root@localhost network-scripts]# cat Ifcfg-eth0 
Device=eth0
type=ethernet
uuid=e94d49b5-92d0-448f-a2a3-9337d3c3949c
onboot=yes
nm_controlled=yes
bootproto=none
IPADDR= 192.168.1.194
prefix=24
defroute=yes
ipv4_failure_fatal=yes
ipv6init=no
name= "System Eth0 "
hwaddr=00:0c:29:1b:f6:a7
last_connect=1488389050
------
start the NIC
ifup eth0
Turn off the NIC Ifdown eth0




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.