- Install the supplementary packages
yum -y install wget vim lrzsz bash- completion telnet nmap
Note:
After installation is complete, log it again, or automatically fill all orders not take effect - Close SELinux:
/ etc / SELinux / config - Turn off the firewall
- STOP firewalld.service systemctl
the Active: inactive (Dead) Operating since 2019-10-17 23 is Thu: 59: display off. 4
[root @ oldboy-c ~] # systemctl disable firewalld.service firewall switched off automatically start
Removed symlink / etc / systemd /system/multi-user.target.wants/firewalld.service.
Removed The symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
- Firewall boot from the start to close
- [root@oldboy-c ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead) 当前是否在启动
Docs: man:firewalld(1)
Oct 17 23:08:45 oldboy-c systemd[1]: Starting firewalld - dynamic firewall daemon...
Oct 17 23:08:48 oldboy-c systemd[1]: Started firewalld - dynamic firewall daemon.
网络相关命令
- 显示网卡
[root@oldboy-c ~]# ip a show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:52:6a:2e brd ff:ff:ff:ff:ff:ff
inet 10.0.0.201/24 brd 10.0.0.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::f4f5:94d1:6970:8364/64 scope link noprefixroute
valid_lft forever preferred_lft forever - ss -lntup view the port open
- ss -ant
modify hostname
/ etc / hostname configuration file
hostname set-hostname oldboy temporary and permanent modify the host name
to modify the character set
localectl set-locale LANG = zh_CN.UTF- 8
view version
[root @ oldboy-c ~] # cat / etc / OS-Release
NAME = "the CentOS the Linux"
VERSION = ". 7 (Core)"
ID = "CentOS"
ID_LIKE = "RHEL Fedora"
VERSION_ID = ". 7"
PRETTY_NAME = "the CentOS the Linux. 7 (Core)"
ANSI_COLOR = "0; 31 is "
CPE_NAME =" CPE: / O: CentOS: CentOS:. 7 "
HOME_URL to =" https://www.centos.org/ "
BUG_REPORT_URL =" https://bugs.centos.org/ "
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Modify the file from the start, you need to add execute permissions
to view and modify the run level