systemd
systemctl is-active nginx
systemctl status nginx
systemctl start nginx
systemctl stop nginx
systemctl enable nginx
systemctl disable nginx
systemctl enable --now nginx
systemctl mask nginx
systemctl unmask nginx
systemctl cat nginx
systemctl list-units
systemctl list-units -a
systemctl list-units -t service
systemctl list-unit-files -t service
systemctl list-unit-files -t service --all
sysstemctl daemon-reload
systemctl restart nginx
ll /usr/lib/systemd/system
ll /lib/systemd/system
ll /etc/systemd/system
runlevel
init 3
init 5
systemctl isolate graphical.target
systemctl get-default
systemctl default
任意键----> e -----> linux行添加rd.break ----> ctrl+x ----> mount -o remount,rw /sysroot -----> chroot /sysroot -----> passwd root ------> touch /.autorelabel ----> exit ----> reboot
任意键----> e ----> liunx行改为rw init=/sysroot/bin/sh ----> ctrl+x ----> chroot /sysroot ----> passwd root ----> touch /.autorelabel ----> exit ----> reboot
grub2-setpasswd
ls -l /root/grub2
chroot /mnt/sysroot #centos8
chroot /mnt/sysimage #centos7
grub2 install --root-directory=/mnt/sysimage /dev/sda
grub2 install /dev/sda
sync
cat /proc/sys/kernel/hostname标签:nginxsystemctl,root,list,mnt,----,回炉,linux,sysroot,第十三天 From: https://blog.51cto.com/dayu/5984789
cat /proc/sys/net/ipv4/icmp_echo_ignore_all
cat /proc/sys/vm/drop_caches
sysctl -p
sysctl -w net.ipv4.ip_forword = 1
sysctl -a