内容一:列出所有受 systemctl 管理的单元
# service -–status-all
内容二:启动某一个单元
# service <unit> start
内容三:停止某一个单元
# service <unit> stop
# service -–status-all
# service <unit> start
# service <unit> stop
# vim /etc/sudoers
或者:
# visudo
添加以下内容:
……
zhumingyu ALL=(ALL) /usr/bin/mysql
(补充:这里以给用户 zhumingyu 添加 /usr/bin/mysql 命令为例)
# vim /etc/sudoers
或者:
# visudo
将以下内容:
......
#Defaults targetpw # ask for the password of the target user i.e. root
#ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
......
修改为:
......
Defaults targetpw # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
......
rpmdb BDB0113 Thread/process
# rm -rf /var/lib/rpm/_db*
# rpm --rebuilddb
# yum clean all
# yum repolist
# ifconfig <network card name> -arp
# ifconfig eth0 -arp
(补充:这里以关闭 eth0 的 arp 协议为例)
# ifconfig <network card name> arp
# ifconfig eth0 arp
(补充:这里以开启 eth0 的 arp 协议为例)
# ifup <network card name>
# ifup eth0
(补充:这里以启动 eth0 网卡为例)
# ifdown <network card name>
# ifdown eth0
(补充:这里以关闭 eth0 网卡为例)
# ip link set <network card name> up
# ip link set eth0 up
(补充:这里以启动 eth0 网卡为例)
# ip link set <network card name> down
# ip link set eth0 down
(补充:这里以关闭 eth0 网卡为例)