centos 7 使用記

修改主機名:shell

/etc/hostname
不在/etc/sysconfig/network 中

服務啓停:centos

systemctl stop/start/enable/disable httpd
或者是進入/etc/systemd/system/multi-user.target 刪除對應服務的鏈接文件也可刪除自啓動

查看自啓動服務:centos7

systemctl -l |grep "service"

init 3 與init 5 的配置:code

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target  ##init 3
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target  ##init 5

cobbler 目前還不支持 centos7 主要是正則匹配上有問題,之後有了再加get

相關文章
相關標籤/搜索