Linux Basic Three---network Basic & Package Management

Source: Internet
Author: User

Ifconfig: Displays details of all the network cards that are being started or sets the IP address of the network card in the system.

Ifconfig eno16777736 down/up off/on eno16777736 NIC

Ifconfig eno16777736 172.18.48.56 netmask 255.255.255.128 to eno16777736

Network Status Command

Service network status (status)

Service network Stop (inactive)

Service Network start (open)

Service Network RESATRT (restart)

Systemctl Status Network View

Systemctl Stop Network shutdown

Establish DNS:

/etc/resolve.com. Configuration file location for DNS

/etc/hosts hosts configuration file location (specify local resolution)

Route-n

Routed add default GW 192.168.16.254 dev NIC Name set gateway

The configuration file of the network card is stored in the/etc/sysconfig/network-scripts directory, and the file name of the corresponding profile for each NIC starts with ifcfg-, such as eth0 the network configuration file for this NIC is Ifcfg-eth0. Add : The virtual machine added network card does not have the configuration file to manually add the configuration or graphics add network card

Two package management

1rpm Command 1) mount the disc file to the/media directory 2) go into the packages directory under/media directory 3) See all RPM packages installed on the system 4) see if the system installs DHCP package 5) Install DHCP package 6) View DHCP packages information 7) View all files included in the DHCP package 8) to see which package the/bin/ls file is generated by 9) Uninstall DHCP package 2:yum command 1) Custom Yum Warehouse: Createrepo 2) Custom repo file Mon 3) Install the httpd package with the Yum Command 4) Uninstall the HTTPD package: yum–y Remove software name 5) Use the Yum installation component ' KDE Desktop ': Yum–y Groupinstall Component name 6) master using Yum to remove components ' KDE Desktop ': yum–y Groupremove Component name 7) Master purge Yum cache: Yum clean all8) use Yum to find packages: Yum Search package name three: Source installation PythonStep1: Extract source package Step2: Install Step 3 Modify Path

Linux Basic Three---network Basic & Package Management

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.