virtualbox in the Linux network configuration and basic configuration

Network Configuration

Here Insert Picture Description
After a good snapshot of what the network configuration, save
Here Insert Picture Description
Here Insert Picture Description
LL, LS
Here Insert Picture Description
Here Insert Picture Description
reboot
Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description
After opening:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
# name和device都是enp0s8;(凭啥?因为先是动态获取,通过ifconfig查看出来的)
NAME=enp0s8
# 所有的网卡uuid不能重复
UUID=60188808-40f9-45d5-83af-4822aadc4711
DEVICE=enp0s8
ONBOOT=yes

# 配置我的ip地址(静态的)
IPADDR=192.168.56.104

Every modification reboot: reboot
Here Insert Picture Description

Here Insert Picture Description
in virtualbox

[D:\~]$ 
Connecting to 192.168.56.104:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Mon Mar  9 12:26:32 2020 from 192.168.56.1

 - **[root@localhost ~]# vi /etc/selinux/config**
   **[root@localhost ~]# clear**

***
**[root@localhost ~]# date**
20200309日 星期一 12:36:03 CST
**[root@localhost ~]# df -h**
文件系统                 容量  已用  可用 已用% 挂载点
devtmpfs                 373M     0  373M    0% /dev
tmpfs                    385M     0  385M    0% /dev/shm
tmpfs                    385M  5.5M  379M    2% /run
tmpfs                    385M     0  385M    0% /sys/fs/cgroup
/dev/mapper/centos-root   50G  1.3G   49G    3% /
/dev/sda1               1014M  136M  879M   14% /boot
/dev/mapper/centos-home  148G   33M  148G    1% /home
tmpfs                     77M     0   77M    0% /run/user/0
[root@localhost ~]# cd/
-bash: cd/: 没有那个文件或目录
**[root@localhost ~]# cd /**
**[root@localhost /]# pwd**
/
**[root@localhost /]# ll -h**
总用量 16K
lrwxrwxrwx.   1 root root    7 3月   9 11:56 bin -> usr/bin
dr-xr-xr-x.   5 root root 4.0K 3月   9 12:00 boot
drwxr-xr-x.  21 root root 3.1K 3月   9 12:23 dev
drwxr-xr-x.  74 root root 8.0K 3月   9 12:29 etc
drwxr-xr-x.   2 root root    6 4月  11 2018 home
lrwxrwxrwx.   1 root root    7 3月   9 11:56 lib -> usr/lib
lrwxrwxrwx.   1 root root    9 3月   9 11:56 lib64 -> usr/lib64
drwxr-xr-x.   2 root root    6 4月  11 2018 media
drwxr-xr-x.   2 root root    6 4月  11 2018 mnt
drwxr-xr-x.   2 root root    6 4月  11 2018 opt
dr-xr-xr-x. 126 root root    0 3月   9 2020 proc
dr-xr-x---.   2 root root  135 3月   9 12:08 root
drwxr-xr-x.  24 root root  720 3月   9 12:29 run
lrwxrwxrwx.   1 root root    8 3月   9 11:56 sbin -> usr/sbin
drwxr-xr-x.   2 root root    6 4月  11 2018 srv
dr-xr-xr-x.  13 root root    0 3月   9 12:18 sys
drwxrwxrwt.   8 root root  211 3月   9 12:29 tmp
drwxr-xr-x.  13 root root  155 3月   9 11:56 usr
drwxr-xr-x.  19 root root  267 3月   9 12:02 var
**[root@localhost /]# mkdir data
[root@localhost /]# pwd**
/
**[root@localhost /]# cd /data/
[root@localhost data]# pwd**
/data
**[root@localhost data]# ll -h**
总用量 0
**[root@localhost data]# pwd**
/data
**[root@localhost data]# vim /etc/fstab**
**[root@localhost data]# df -h**
文件系统                 容量  已用  可用 已用% 挂载点
devtmpfs                 373M     0  373M    0% /dev
tmpfs                    385M     0  385M    0% /dev/shm
tmpfs                    385M  5.5M  379M    2% /run
tmpfs                    385M     0  385M    0% /sys/fs/cgroup
/dev/mapper/centos-root   50G  1.3G   49G    3% /
/dev/sda1               1014M  136M  879M   14% /boot
/dev/mapper/centos-home  148G   33M  148G    1% /home
tmpfs                     77M     0   77M    0% /run/user/0
**[root@localhost data]# service iptables status**
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
**[root@localhost data]# service iptables status**
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
**[root@localhost data]# service firewalld status**
Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since 一 2020-03-09 12:18:11 CST; 1h 5min ago
     Docs: man:firewalld(1)
 Main PID: 731 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─731 /usr/bin/py...

3月 09 12:18:10 localhost.localdomain systemd[1]: ...
3月 09 12:18:11 localhost.localdomain systemd[1]: ...
Hint: Some lines were ellipsized, use -l to show in full.
**[root@localhost data]# service firewalld stop**
Redirecting to /bin/systemctl stop firewalld.service
^[[A[root@localhost data]# servfirewalld status
Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since 一 2020-03-09 13:24:42 CST; 53s ago
     Docs: man:firewalld(1)
  Process: 731 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 731 (code=exited, status=0/SUCCESS)

3月 09 12:18:10 localhost.localdomain systemd[1]: ...
3月 09 12:18:11 localhost.localdomain systemd[1]: ...
3月 09 13:24:40 localhost.localdomain systemd[1]: ...
3月 09 13:24:42 localhost.localdomain systemd[1]: ...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost data]#  systemctl
  UNIT                      LOA
  proc-sys-fs-binfmt_misc.autom
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-pci0000:00-0000:0
  sys-devices-platform-serial82
  sys-devices-platform-serial82
  sys-devices-platform-serial82
  sys-devices-platform-serial82
  sys-devices-virtual-block-dm\
  sys-devices-virtual-block-dm\
  sys-devices-virtual-block-dm\
  sys-module-configfs.device lo
  sys-subsystem-net-devices-enp
  sys-subsystem-net-devices-enp
  -.mount                   loa
  boot.mount                loa
  dev-hugepages.mount       loa
  dev-mqueue.mount          loa
  home.mount                loa
  run-user-0.mount          loa
  sys-kernel-config.mount   loa
  sys-kernel-debug.mount    loa
  systemd-ask-password-plymouth
lines 1-28

  UNIT                      LOAD   ACTIVE 
  proc-sys-fs-binfmt_misc.automount loaded
  sys-devices-pci0000:00-0000:00:01.1-ata2
  sys-devices-pci0000:00-0000:00:03.0-net-
  sys-devices-pci0000:00-0000:00:05.0-soun
  sys-devices-pci0000:00-0000:00:08.0-net-
  sys-devices-pci0000:00-0000:00:0d.0-ata3
  sys-devices-pci0000:00-0000:00:0d.0-ata3
  sys-devices-pci0000:00-0000:00:0d.0-ata3
  sys-devices-platform-serial8250-tty-ttyS
  sys-devices-platform-serial8250-tty-ttyS
  sys-devices-platform-serial8250-tty-ttyS
  sys-devices-platform-serial8250-tty-ttyS
  sys-devices-virtual-block-dm\x2d0.device
  sys-devices-virtual-block-dm\x2d1.device
  sys-devices-virtual-block-dm\x2d2.device
  sys-module-configfs.device loaded active
  sys-subsystem-net-devices-enp0s3.device 
  sys-subsystem-net-devices-enp0s8.device 
  -.mount                   loaded active 
  boot.mount                loaded active 
  dev-hugepages.mount       loaded active 
  dev-mqueue.mount          loaded active 
  home.mount                loaded active 
  run-user-0.mount          loaded active 
  sys-kernel-config.mount   loaded active 
  sys-kernel-debug.mount    loaded active 
  systemd-ask-password-plymouth.path loade
  systemd-ask-password-wall.path loaded ac
  session-1.scope           loaded active 
  session-2.scope           loaded active 
  session-3.scope           loaded active 
  session-4.scope           loaded active 
  auditd.service            loaded active 
  chronyd.service           loaded active 
  crond.service             loaded active 
  dbus.service              loaded active 
  [email protected]        loaded active 
  irqbalance.service        loaded active 
● kdump.service             loaded failed 
  kmod-static-nodes.service loaded active 
  lvm2-lvmetad.service      loaded active 
  lvm2-monitor.service      loaded active 
  lvm2-pvscan@8:2.service   loaded active 
  network.service           loaded active 
  NetworkManager-wait-online.service loade
  NetworkManager.service    loaded active 
  polkit.service            loaded active 
  postfix.service           loaded active 
  rhel-dmesg.service        loaded active 
  rhel-domainname.service   loaded active 
  rhel-import-state.service loaded active 
  rhel-readonly.service     loaded active 
  rsyslog.service           loaded active 
  sshd.service              loaded active 
  systemd-journal-flush.service loaded act
  systemd-journald.service  loaded active 
  systemd-logind.service    loaded active 
  systemd-random-seed.service loaded activ
  systemd-remount-fs.service loaded active
  systemd-sysctl.service    loaded active 
  systemd-tmpfiles-setup-dev.service loade
  systemd-tmpfiles-setup.service loaded ac
  systemd-udev-trigger.service loaded acti
  systemd-udevd.service     loaded active 
  systemd-update-utmp.service loaded activ
  systemd-user-sessions.service loaded act
  systemd-vconsole-setup.service loaded ac
  tuned.service             loaded active 
  -.slice                   loaded active 
  system-getty.slice        loaded active 
  system-lvm2\x2dpvscan.slice loaded activ
  system-selinux\x2dpolicy\x2dmigrate\x2dl
  system.slice              loaded active 
  user-0.slice              loaded active 
  user.slice                loaded active 
  dbus.socket               loaded active 
  dm-event.socket           loaded active 
  lvm2-lvmetad.socket       loaded active 
  lvm2-lvmpolld.socket      loaded active 
  systemd-initctl.socket    loaded active 
  systemd-journald.socket   loaded active 
  systemd-shutdownd.socket  loaded active 
  systemd-udevd-control.socket loaded acti
  systemd-udevd-kernel.socket loaded activ
  dev-mapper-centos\x2dswap.swap loaded ac
  basic.target              loaded active 
  cryptsetup.target         loaded active 
  getty.target              loaded active 
  local-fs-pre.target       loaded active 
  local-fs.target           loaded active 
  multi-user.target         loaded active 
  network-online.target     loaded active 
  network-pre.target        loaded active 
  network.target            loaded active 
  paths.target              loaded active 
  remote-fs.target          loaded active 
  slices.target             loaded active 
  sockets.target            loaded active 
  sound.target              loaded active 
  swap.target               loaded active 
  sysinit.target            loaded active 
  timers.target             loaded active 
  systemd-tmpfiles-clean.timer loaded acti

LOAD   = Reflects whether the unit definit
ACTIVE = The high-level unit activation st
SUB    = The low-level unit activation sta

103 loaded units listed. Pass --all to see
To show all installed unit files use 'syst
lines 84-111/111 (END)
  systemd-udevd-control.socket loaded active running   udev Control Socket
  systemd-udevd-kernel.socket loaded active running   udev Kernel Socket
  dev-mapper-centos\x2dswap.swap loaded active active    /dev/mapper/cento
  basic.target              loaded active active    Basic System
  cryptsetup.target         loaded active active    Local Encrypted Volume
  getty.target              loaded active active    Login Prompts
  local-fs-pre.target       loaded active active    Local File Systems (Pr
  local-fs.target           loaded active active    Local File Systems
  multi-user.target         loaded active active    Multi-User System
  network-online.target     loaded active active    Network is Online
  network-pre.target        loaded active active    Network (Pre)
  network.target            loaded active active    Network
  paths.target              loaded active active    Paths
  remote-fs.target          loaded active active    Remote File Systems
  slices.target             loaded active active    Slices
  sockets.target            loaded active active    Sockets
  sound.target              loaded active active    Sound Card
  swap.target               loaded active active    Swap
  sysinit.target            loaded active active    System Initialization
  timers.target             loaded active active    Timers
  systemd-tmpfiles-clean.timer loaded active waiting   Daily Cleanup of Te

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
~
~
~
~
~
~
~
~
lines 84-111/111 (END)
  systemd-udevd-control.socket loaded acti
  systemd-udevd-kernel.socket loaded activ
  dev-mapper-centos\x2dswap.swap loaded ac
  basic.target              loaded active 
  cryptsetup.target         loaded active 
  getty.target              loaded active 
  local-fs-pre.target       loaded active 
  local-fs.target           loaded active 
  multi-user.target         loaded active 
  network-online.target     loaded active 
  network-pre.target        loaded active 
  network.target            loaded active 
  paths.target              loaded active 
  remote-fs.target          loaded active 
  slices.target             loaded active 
  sockets.target            loaded active 
  sound.target              loaded active 
  swap.target               loaded active 
  sysinit.target            loaded active 
  timers.target             loaded active 
  systemd-tmpfiles-clean.timer loaded acti

LOAD   = Reflects whether the unit definit
ACTIVE = The high-level unit activation st
SUB    = The low-level unit activation sta

103 loaded units listed. Pass --all to see
To show all installed unit files use 'syst
lines 84-111/111 (END)
  systemd-udevd-control.socket loaded active running   udev Control Socket
  systemd-udevd-kernel.socket loaded active running   udev Kernel Socket
  dev-mapper-centos\x2dswap.swap loaded active active    /dev/mapper/cento
  basic.target              loaded active active    Basic System
  cryptsetup.target         loaded active active    Local Encrypted Volume
  getty.target              loaded active active    Login Prompts
  local-fs-pre.target       loaded active active    Local File Systems (Pr
  local-fs.target           loaded active active    Local File Systems
  multi-user.target         loaded active active    Multi-User System
  network-online.target     loaded active active    Network is Online
  network-pre.target        loaded active active    Network (Pre)
  network.target            loaded active active    Network
  paths.target              loaded active active    Paths
  remote-fs.target          loaded active active    Remote File Systems
  slices.target             loaded active active    Slices
  sockets.target            loaded active active    Sockets
  sound.target              loaded active active    Sound Card
  swap.target               loaded active active    Swap
  sysinit.target            loaded active active    System Initialization
  timers.target             loaded active active    Timers
  systemd-tmpfiles-clean.timer loaded active waiting   Daily Cleanup of Te

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
~
~
~
~
~
~
~
~

**[root@localhost data]#  systemctl list-unit-files | grep firewalld**
firewalld.service                             enabled 
**[root@localhost data]#  systemctl disable firewalld**
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
**[root@localhost data]#  systemctl list-unit-files | grep firewalld**
firewalld.service                             disabled
**[root@localhost data]# reboot**
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(test) at 13:39:36.

Type `help' to learn how to use Xshell prompt.
[D:\~]$ 
Reconnecting in 30 seconds. Press any key to exit local shell.
..............................

Connecting to 192.168.56.104:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Mon Mar  9 12:29:04 2020 from 192.168.56.1
**[root@localhost ~]# df -h**
文件系统                 容量  已用  可用 已用% 挂载点
devtmpfs                 373M     0  373M    0% /dev
tmpfs                    385M     0  385M    0% /dev/shm
tmpfs                    385M  5.5M  379M    2% /run
tmpfs                    385M     0  385M    0% /sys/fs/cgroup
/dev/mapper/centos-root   50G  1.3G   49G    3% /
/dev/mapper/centos-home  148G   33M  148G    1% /data
/dev/sda1               1014M  136M  879M   14% /boot
tmpfs                     77M     0   77M    0% /run/user/0
**[root@localhost ~]# vim /etc/selinux/config 
[root@localhost ~]# systemctl status firewalld**
● 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)
**[root@localhost ~]# yum -y install net-tools**

It is knocked up bold, code more convenient to knockout the above:
[D: ~] $

Connecting to 192.168.56.104:22…
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]’.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Mon Mar 9 12:26:32 2020 from 192.168.56.1
[root@localhost ~]# vi /etc/selinux/config
[root@localhost ~]# clear


[root @ localhost ~] # date
2020, March 9 CST Monday 12:36:03
[root @ localhost ~] # df -h
file system capacity has been available for use with the mount point%
devtmpfs 373M 0 373M 0% / dev
tmpfs 385m 385m 0 0% / dev / SHM
tmpfs 385m 2% 5.5M 379M / RUN
tmpfs 385m 385m 0 0% / SYS / FS / a cgroup
/ dev / Mapper / CentOS the root 50G-49G 1.3G. 3% /
/ dev / sda1 136M 879m 14% of 10-14m / Boot
/ dev / Mapper / 33M CentOS 148G-148G. 1% Home / Home
tmpfs 77M 77M 0 0% / RUN / User / 0
[the root @ localhost ~] # CD /
-bash: CD / : no such file or directory
[the root @ localhost ~] # CD /
[the root @ localhost /] # pwd
/
[the root @ localhost /] # -H LL
total amount of 16K
lrwxrwxrwx the root the root. 7. 3. 1 dated 9 11:56 bin. -> usr / bin
dr-xr-xr-x. 5 root root 4.0K 3月 9 12:00 boot
drwxr-xr-x. 21 root root 3.1K 3月 9 12:23 dev
drwxr-xr-x. 74 root root 8.0K 3月 9 12:29 etc
drwxr-xr-x. 2 root root 6 4月 11 2018 home
lrwxrwxrwx. 1 root root 7 3月 9 11:56 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 3月 9 11:56 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 4月 11 2018 media
drwxr-xr-x. 2 root root 6 4月 11 2018 mnt
drwxr-xr-x. 2 root root 6 4月 11 2018 opt
dr-xr-xr-x. 126 root root 0 3月 9 2020 proc
dr-xr-x—. 2 root root 135 3月 9 12:08 root
drwxr-xr-x. 24 root root 720 3月 9 12:29 run
lrwxrwxrwx. 1 root root 8 3月 9 11:56 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 4月 11 2018 srv
dr-xr-xr-x. 13 root root 0 . 3 12:18 dated SYS. 9
drwxrwxrwt. the root. 8. 3 211 dated the root tmp 12:29. 9
drwxr-XR-X. the root 13 is the root. 3 155 dated usr 11:56. 9
drwxr -xr-x. 19 root root 267. 3 12:02 dated var. 9
[the root @ localhost /] # mkdir Data
[the root @ localhost /] # pwd

/
[the root @ localhost /] # CD / Data /
[the root @ localhost Data ] # pwd

/ Data
[the root @ localhost Data] # -H LL
total amount of 0
[the root @ localhost Data] # pwd
/ Data
[the root @ localhost Data] # Vim / etc / fstab
[the root @ localhost Data] DF # -H
file system capacity has been available for use with the mount point%
devtmpfs 373M 0 373M 0% / dev
tmpfs 385m 385m 0 0% / dev / SHM
tmpfs 385m 2% 5.5M 379M / RUN
tmpfs 385m 385m 0 0% / SYS / FS / cgroup
/dev/mapper/centos-root 50G 1.3G 49G 3% /
/dev/sda1 1014M 136M 879M 14% /boot
/dev/mapper/centos-home 148G 33M 148G 1% /home
tmpfs 77M 0 77M 0% /run/user/0
[root@localhost data]# service iptables status
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
[root@localhost data]# service iptables status
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
[root@localhost data]# service firewalld status
Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since 一 2020-03-09 12:18:11 CST; 1h 5min ago
Docs: man:firewalld(1)
Main PID: 731 (firewalld)
CGroup: /system.slice/firewalld.service
└─731 /usr/bin/py…

3月 09 12:18:10 localhost.localdomain systemd[1]: …
3月 09 12:18:11 localhost.localdomain systemd[1]: …
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost data]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
^[[A[root@localhost data]# servfirewalld status
Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: inactive (dead) since 一 2020-03-09 13:24:42 CST; 53s ago
Docs: man:firewalld(1)
Process: 731 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 731 (code=exited, status=0/SUCCESS)

3月 09 12:18:10 localhost.localdomain systemd[1]: …
3月 09 12:18:11 localhost.localdomain systemd[1]: …
3月 09 13:24:40 localhost.localdomain systemd[1]: …
3月 09 13:24:42 localhost.localdomain systemd[1]: …
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost data]# systemctl
UNIT LOA
proc-sys-fs-binfmt_misc.autom
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-pci0000:00-0000:0
sys-devices-platform-serial82
sys-devices-platform-serial82
sys-devices-platform-serial82
sys-devices-platform-serial82
sys-devices-virtual-block-dm
sys-devices-virtual-block-dm
sys-devices-virtual-block-dm
sys-module-configfs.device lo
sys-subsystem-net-devices-enp
sys-subsystem-net-devices-enp
-.mount loa
boot.mount loa
dev-hugepages.mount loa
dev-mqueue.mount loa
home.mount loa
run-user-0.mount loa
sys-kernel-config.mount loa
sys-kernel-debug.mount loa
systemd-ask-password-plymouth
lines 1-28

UNIT LOAD ACTIVE
proc-sys-fs-binfmt_misc.automount loaded
sys-devices-pci0000:00-0000:00:01.1-ata2
sys-devices-pci0000:00-0000:00:03.0-net-
sys-devices-pci0000:00-0000:00:05.0-soun
sys-devices-pci0000:00-0000:00:08.0-net-
sys-devices-pci0000:00-0000:00:0d.0-ata3
sys-devices-pci0000:00-0000:00:0d.0-ata3
sys-devices-pci0000:00-0000:00:0d.0-ata3
sys-devices-platform-serial8250-tty-ttyS
sys-devices-platform-serial8250-tty-ttyS
sys-devices-platform-serial8250-tty-ttyS
sys-devices-platform-serial8250-tty-ttyS
sys-devices-virtual-block-dm\x2d0.device
sys-devices-virtual-block-dm\x2d1.device
sys-devices-virtual-block-dm\x2d2.device
sys-module-configfs.device loaded active
sys-subsystem-net-devices-enp0s3.device
sys-subsystem-net-devices-enp0s8.device
-.mount loaded active
boot.mount loaded active
dev-hugepages.mount loaded active
dev-mqueue.mount loaded active
home.mount loaded active
run-user-0.mount loaded active
sys-kernel-config.mount loaded active
sys-kernel-debug.mount loaded active
systemd-ask-password-plymouth.path loade
systemd-ask-password-wall.path loaded ac
session-1.scope loaded active
session-2.scope loaded active
session-3.scope loaded active
session-4.scope loaded active
auditd.service loaded active
chronyd.service loaded active
crond.service loaded active
dbus.service loaded active
[email protected] loaded active
irqbalance.service loaded active
● kdump.service loaded failed
kmod-static-nodes.service loaded active
lvm2-lvmetad.service loaded active
lvm2-monitor.service loaded active
lvm2-pvscan@8:2.service loaded active
network.service loaded active
NetworkManager-wait-online.service loade
NetworkManager.service loaded active
polkit.service loaded active
postfix.service loaded active
rhel-dmesg.service loaded active
rhel-domainname.service loaded active
rhel-import-state.service loaded active
rhel-readonly.service loaded active
rsyslog.service loaded active
sshd.service loaded active
systemd-journal-flush.service loaded act
systemd-journald.service loaded active
systemd-logind.service loaded active
systemd-random-seed.service loaded activ
systemd-remount-fs.service loaded active
systemd-sysctl.service loaded active
systemd-tmpfiles-setup-dev.service loade
systemd-tmpfiles-setup.service loaded ac
systemd-udev-trigger.service loaded acti
systemd-udevd.service loaded active
systemd-update-utmp.service loaded activ
systemd-user-sessions.service loaded act
systemd-vconsole-setup.service loaded ac
tuned.service loaded active
-.slice loaded active
system-getty.slice loaded active
system-lvm2\x2dpvscan.slice loaded activ
system-selinux\x2dpolicy\x2dmigrate\x2dl
system.slice loaded active
user-0.slice loaded active
user.slice loaded active
dbus.socket loaded active
dm-event.socket loaded active
lvm2-lvmetad.socket loaded active
lvm2-lvmpolld.socket loaded active
systemd-initctl.socket loaded active
systemd-journald.socket loaded active
systemd-shutdownd.socket loaded active
systemd-udevd-control.socket loaded acti
systemd-udevd-kernel.socket loaded activ
dev-mapper-centos\x2dswap.swap loaded ac
basic.target loaded active
cryptsetup.target loaded active
getty.target loaded active
local-fs-pre.target loaded active
local-fs.target loaded active
multi-user.target loaded active
network-online.target loaded active
network-pre.target loaded active
network.target loaded active
paths.target loaded active
remote-fs.target loaded active
slices.target loaded active
sockets.target loaded active
sound.target loaded active
swap.target loaded active
sysinit.target loaded active
timers.target loaded active
systemd-tmpfiles-clean.timer loaded acti

LOAD = Reflects whether the unit definit
ACTIVE = The high-level unit activation st
SUB = The low-level unit activation sta

103 loaded units listed. Pass --all to see
To show all installed unit files use 'syst
lines 84-111/111 (END)
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
dev-mapper-centos\x2dswap.swap loaded active active /dev/mapper/cento
basic.target loaded active active Basic System
cryptsetup.target loaded active active Local Encrypted Volume
getty.target loaded active active Login Prompts
local-fs-pre.target loaded active active Local File Systems (Pr
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network-pre.target loaded active active Network (Pre)
network.target loaded active active Network
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
slices.target loaded active active Slices
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Te

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use ‘systemctl list-unit-files’.
~
~
~
~
~
~
~
~
lines 84-111/111 (END)
systemd-udevd-control.socket loaded acti
systemd-udevd-kernel.socket loaded activ
dev-mapper-centos\x2dswap.swap loaded ac
basic.target loaded active
cryptsetup.target loaded active
getty.target loaded active
local-fs-pre.target loaded active
local-fs.target loaded active
multi-user.target loaded active
network-online.target loaded active
network-pre.target loaded active
network.target loaded active
paths.target loaded active
remote-fs.target loaded active
slices.target loaded active
sockets.target loaded active
sound.target loaded active
swap.target loaded active
sysinit.target loaded active
timers.target loaded active
systemd-tmpfiles-clean.timer loaded acti

LOAD = Reflects whether the unit definit
ACTIVE = The high-level unit activation st
SUB = The low-level unit activation sta

103 loaded units listed. Pass --all to see
To show all installed unit files use 'syst
lines 84-111/111 (END)
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
dev-mapper-centos\x2dswap.swap loaded active active /dev/mapper/cento
basic.target loaded active active Basic System
cryptsetup.target loaded active active Local Encrypted Volume
getty.target loaded active active Login Prompts
local-fs-pre.target loaded active active Local File Systems (Pr
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network-pre.target loaded active active Network (Pre)
network.target loaded active active Network
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
slices.target loaded active active Slices
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Te

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use ‘systemctl list-unit-files’.
~
~
~
~
~
~
~
~

[root@localhost data]# systemctl list-unit-files | grep firewalld
firewalld.service enabled
[root@localhost data]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost data]# systemctl list-unit-files | grep firewalld
firewalld.service disabled
[root@localhost data]# reboot
Connection closing…Socket close.

Connection closed by foreign host.

Disconnected from remote host(test) at 13:39:36.

Type `help’ to learn how to use Xshell prompt.
[D:~]$
Reconnecting in 30 seconds. Press any key to exit local shell.

Connecting to 192.168.56.104:22…
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]’.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Mon Mar 9 12:29:04 2020 from 192.168.56.1
[root@localhost ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
devtmpfs 373M 0 373M 0% /dev
tmpfs 385M 0 385M 0% /dev/shm
tmpfs 385M 5.5M 379M 2% /run
tmpfs 385M 0 385M 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 1.3G 49G 3% /
/dev/mapper/centos-home 148G 33M 148G 1% /data
/dev/sda1 1014M 136M 879M 14% /boot
tmpfs 77M 0 77M 0% /run/user/0
[root@localhost ~]# vim /etc/selinux/config
[root@localhost ~]# systemctl status firewalld

● 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)
[root@localhost ~]# yum -y install net-tools

Published 16 original articles · won praise 9 · views 286

Guess you like

Origin blog.csdn.net/XIAOMO__/article/details/104752226
Recommended