码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 18.* 重启网卡

时间:2019-05-02 21:40:56      阅读:1926      评论:0      收藏:0      [点我收藏+]

标签:required   mit   etc   page   temp   nod   pfile   inf   use   

技术图片
 systemctl
UNIT                                                                                     LOAD   ACTIVE SUB       DESCRIPTION
proc-sys-fs-binfmt_misc.automount                                                        loaded active waiting   Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device      loaded active plugged   VBOX_CD-ROM
sys-devices-pci0000:00-0000:00:03.0-net-enp0s3.device                                    loaded active plugged   82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)
sys-devices-pci0000:00-0000:00:05.0-sound-card0.device                                   loaded active plugged   82801AA AC97 Audio Controller
sys-devices-pci0000:00-0000:00:08.0-virtio0-net-enp0s8.device                            loaded active plugged   Virtio network device
sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded active plugged   VBOX_HARDDISK 1
sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded active plugged   VBOX_HARDDISK 2
sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda.device      loaded active plugged   VBOX_HARDDISK
sys-devices-platform-serial8250-tty-ttyS0.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS10.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS10
sys-devices-platform-serial8250-tty-ttyS11.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS11
sys-devices-platform-serial8250-tty-ttyS12.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS12
sys-devices-platform-serial8250-tty-ttyS13.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS13
sys-devices-platform-serial8250-tty-ttyS14.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS14
sys-devices-platform-serial8250-tty-ttyS15.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS15
sys-devices-platform-serial8250-tty-ttyS16.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS16
sys-devices-platform-serial8250-tty-ttyS17.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS17
sys-devices-platform-serial8250-tty-ttyS18.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS18
sys-devices-platform-serial8250-tty-ttyS19.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS19
sys-devices-platform-serial8250-tty-ttyS2.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS20.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS20
sys-devices-platform-serial8250-tty-ttyS21.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS21
sys-devices-platform-serial8250-tty-ttyS22.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS22
sys-devices-platform-serial8250-tty-ttyS23.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS23
sys-devices-platform-serial8250-tty-ttyS24.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS24
sys-devices-platform-serial8250-tty-ttyS25.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS25
sys-devices-platform-serial8250-tty-ttyS26.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS26
sys-devices-platform-serial8250-tty-ttyS27.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS27
sys-devices-platform-serial8250-tty-ttyS28.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS28
sys-devices-platform-serial8250-tty-ttyS29.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS29
sys-devices-platform-serial8250-tty-ttyS3.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-platform-serial8250-tty-ttyS30.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS30
sys-devices-platform-serial8250-tty-ttyS31.device                                        loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS31
sys-devices-platform-serial8250-tty-ttyS4.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS4
sys-devices-platform-serial8250-tty-ttyS5.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS5
sys-devices-platform-serial8250-tty-ttyS6.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS6
sys-devices-platform-serial8250-tty-ttyS7.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS7
sys-devices-platform-serial8250-tty-ttyS8.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS8
sys-devices-platform-serial8250-tty-ttyS9.device                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS9
sys-devices-virtual-block-loop0.device                                                   loaded active plugged   /sys/devices/virtual/block/loop0
sys-devices-virtual-block-loop1.device                                                   loaded active plugged   /sys/devices/virtual/block/loop1
sys-devices-virtual-block-loop2.device                                                   loaded active plugged   /sys/devices/virtual/block/loop2
sys-devices-virtual-misc-rfkill.device                                                   loaded active plugged   /sys/devices/virtual/misc/rfkill
sys-devices-virtual-tty-ttyprintk.device                                                 loaded active plugged   /sys/devices/virtual/tty/ttyprintk
sys-module-configfs.device                                                               loaded active plugged   /sys/module/configfs
sys-module-fuse.device                                                                   loaded active plugged   /sys/module/fuse
sys-subsystem-net-devices-enp0s3.device                                                  loaded active plugged   82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)
sys-subsystem-net-devices-enp0s8.device                                                  loaded active plugged   Virtio network device
-.mount                                                                                  loaded active mounted   Root Mount
dev-hugepages.mount                                                                      loaded active mounted   Huge Pages File System
dev-mqueue.mount                                                                         loaded active mounted   POSIX Message Queue File System
run-user-1000.mount                                                                      loaded active mounted   /run/user/1000
snap-core-6405.mount                                                                     loaded active mounted   Mount unit for core, revision 6405
snap-core-6673.mount                                                                     loaded active mounted   Mount unit for core, revision 6673
snap-core-6818.mount                                                                     loaded active mounted   Mount unit for core, revision 6818
sys-fs-fuse-connections.mount                                                            loaded active mounted   FUSE Control File System
sys-kernel-config.mount                                                                  loaded active mounted   Kernel Configuration File System
sys-kernel-debug.mount                                                                   loaded active mounted   Kernel Debug File System
var-lib-lxcfs.mount                                                                      loaded active mounted   /var/lib/lxcfs
acpid.path                                                                               loaded active waiting   ACPI Events Check
systemd-ask-password-console.path                                                        loaded active waiting   Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path                                                           loaded active waiting   Forward Password Requests to Wall Directory Watch
init.scope                                                                               loaded active running   System and Service Manager
session-1.scope                                                                          loaded active running   Session 1 of user make
session-3.scope                                                                          loaded active running   Session 3 of user make
accounts-daemon.service                                                                  loaded active running   Accounts Service
apparmor.service                                                                         loaded active exited    AppArmor initialization
apport.service                                                                           loaded active exited    LSB: automatic crash report generation
atd.service                                                                              loaded active running   Deferred execution scheduler
blk-availability.service                                                                 loaded active exited    Availability of block devices
cloud-config.service                                                                     loaded active exited    Apply the settings specified in cloud-config
cloud-final.service                                                                      loaded active exited    Execute cloud user/final scripts
cloud-init-local.service                                                                 loaded active exited    Initial cloud-init job (pre-networking)
cloud-init.service                                                                       loaded active exited    Initial cloud-init job (metadata service crawler)
console-setup.service                                                                    loaded active exited    Set console font and keymap
cron.service                                                                             loaded active running   Regular background program processing daemon
dbus.service                                                                             loaded active running   D-Bus System Message Bus
ebtables.service                                                                         loaded active exited    ebtables ruleset management
getty@tty1.service                                                                       loaded active running   Getty on tty1
grub-common.service                                                                      loaded active exited    LSB: Record successful boot for GRUB
irqbalance.service                                                                       loaded active running   irqbalance daemon
keyboard-setup.service                                                                   loaded active exited    Set the console keyboard layout
kmod-static-nodes.service                                                                loaded active exited    Create list of required static device nodes for the current kernel
lvm2-lvmetad.service                                                                     loaded active running   LVM2 metadata daemon
lvm2-monitor.service                                                                     loaded active exited    Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
lxcfs.service                                                                            loaded active running   FUSE filesystem for LXC
lxd-containers.service                                                                   loaded active exited    LXD - container startup/shutdown
networkd-dispatcher.service                                                              loaded active running   Dispatcher daemon for systemd-networkd
nmbd.service                                                                             loaded active running   Samba NMB Daemon
polkit.service                                                                           loaded active running   Authorization Manager
privoxy.service                                                                          loaded active running   Privacy enhancing HTTP Proxy
rsyslog.service                                                                          loaded active running   System Logging Service
setvtrgb.service                                                                         loaded active exited    Set console scheme
smbd.service                                                                             loaded active running   Samba SMB Daemon
snapd.seeded.service                                                                     loaded active exited    Wait until snapd is fully seeded
snapd.service                                                                            loaded active running   Snappy daemon
ssh.service                                                                              loaded active running   OpenBSD Secure Shell server
sslh.service                                                                             loaded active exited    LSB: sslh
systemd-journal-flush.service                                                            loaded active exited    Flush Journal to Persistent Storage
systemd-journald.service                                                                 loaded active running   Journal Service
systemd-logind.service                                                                   loaded active running   Login Service
systemd-modules-load.service                                                             loaded active exited    Load Kernel Modules
systemd-networkd-wait-online.service                                                     loaded active exited    Wait for Network to be Configured
systemd-networkd.service                                                                 loaded active running   Network Service
systemd-random-seed.service                                                              loaded active exited    Load/Save Random Seed
systemd-remount-fs.service                                                               loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service                                                                   loaded active exited    Apply Kernel Variables
systemd-timesyncd.service                                                                loaded active running   Network Time Synchronization
systemd-tmpfiles-setup-dev.service                                                       loaded active exited    Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service                                                           loaded active exited    Create Volatile Files and Directories
systemd-udev-trigger.service                                                             loaded active exited    udev Coldplug all Devices
systemd-udevd.service                                                                    loaded active running   udev Kernel Device Manager
systemd-update-utmp.service                                                              loaded active exited    Update UTMP about System Boot/Shutdown
systemd-user-sessions.service                                                            loaded active exited    Permit User Sessions
ufw.service                                                                              loaded active exited    Uncomplicated firewall
unattended-upgrades.service                                                              loaded active running   Unattended Upgrades Shutdown
user@1000.service                                                                        loaded active running   User Manager for UID 1000
-.slice                                                                                  loaded active active    Root Slice
system-getty.slice                                                                       loaded active active    system-getty.slice
system.slice                                                                             loaded active active    System Slice
user-1000.slice                                                                          loaded active active    User Slice of make
user.slice                                                                               loaded active active    User and Session Slice
acpid.socket                                                                             loaded active listening ACPID Listen Socket
dbus.socket                                                                              loaded active running   D-Bus System Message Bus Socket
dm-event.socket                                                                          loaded active listening Device-mapper event daemon FIFOs
iscsid.socket                                                                            loaded active listening Open-iSCSI iscsid Socket
lvm2-lvmetad.socket                                                                      loaded active running   LVM2 metadata daemon socket
lvm2-lvmpolld.socket                                                                     loaded active listening LVM2 poll daemon socket
lxd.socket                                                                               loaded active listening LXD - unix socket
snapd.socket                                                                             loaded active running   Socket activation for snappy daemon
syslog.socket                                                                            loaded active running   Syslog Socket
systemd-initctl.socket                                                                   loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald-audit.socket                                                            loaded active running   Journal Audit Socket
systemd-journald-dev-log.socket                                                          loaded active running   Journal Socket (/dev/log)
systemd-journald.socket                                                                  loaded active running   Journal Socket
systemd-networkd.socket                                                                  loaded active running   Network Service Netlink Socket
systemd-rfkill.socket                                                                    loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
systemd-udevd-control.socket                                                             loaded active running   udev Control Socket
systemd-udevd-kernel.socket                                                              loaded active running   udev Kernel Socket
uuidd.socket                                                                             loaded active listening UUID daemon activation socket
basic.target                                                                             loaded active active    Basic System
cloud-config.target                                                                      loaded active active    Cloud-config availability
cloud-init.target                                                                        loaded active active    Cloud-init target
cryptsetup.target                                                                        loaded active active    Local Encrypted Volumes
getty.target                                                                             loaded active active    Login Prompts
graphical.target                                                                         loaded active active    Graphical Interface
local-fs-pre.target                                                                      loaded active active    Local File Systems (Pre)
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
nss-user-lookup.target                                                                   loaded active active    User and Group Name Lookups
paths.target                                                                             loaded active active    Paths
remote-fs-pre.target                                                                     loaded active active    Remote File Systems (Pre)
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
time-sync.target                                                                         loaded active active    System Time Synchronized
timers.target                                                                            loaded active active    Timers
apt-daily-upgrade.timer                                                                  loaded active waiting   Daily apt upgrade and clean activities
apt-daily.timer                                                                          loaded active waiting   Daily apt download activities
fstrim.timer                                                                             loaded active waiting   Discard unused blocks once a week
motd-news.timer                                                                          loaded active elapsed   Message of the Day
systemd-tmpfiles-clean.timer                                                             loaded active waiting   Daily Cleanup of Temporary Directories

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.

169 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use systemctl list-unit-files.
全部服务备查

 

实验

systemd-networkd.service

还没实验 具体看

http://www.jinbuguo.com/systemd/systemd-networkd.service.html#

ubuntu 18.* 重启网卡

标签:required   mit   etc   page   temp   nod   pfile   inf   use   

原文地址:https://www.cnblogs.com/marklove/p/10803345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!