添加开机自启动服务
systemctl enable nginx.service
/etc/init.d/README:
传统的init脚本位置于: /etc/rc.d/init.d基于systemd的OS使用本地的systemd service替换了传统的init脚本.使用systemctl 查看正在运行的service使用systemctl list-unit-files 查看所有的service注意, 传统的init脚本继续在systemd上运行.如/etc/rc.d/init.d/foobar隐式映射为foobar.service
语系相关操作
更改语系
locale #查看语系
LANG=zh_CN.utf8;locale
export LC_ALL=zh_CN.utf8;locale
一些补充的语系命令: [不太懂]
[root@kuaicdn tmp]# localectl #查看系统语系
System Locale: LANG=zh_CN.UTF-8
VC Keymap: cn
X11 Layout: cn
[root@kuaicdn tmp]# localectl list-locales | grep zh_CN #查看所有语系
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
localectl set-locale LANG=ja_JP.UTF-8 #设置系统语系
