一位RHEL5的Centos玩家。
5到6,命令并没有太大的变化。然而到了7之后,许多命令不能用了。这就很尴尬了,说是红帽认证系统工程师,连个基础命令都不会了。
3、修改系统语言为UTF8/GB18030。
5/6版本:/etc/sysconfig/i18n
7版本:/etc/locale.conf ; LANG="zh_CN.utf8" ; source /etc/locale.conf
2、systemctl开机自启动服务(以vsftpd为例)
5/6版本:chkconfig --level 3 vsftpd on
7版本:systemctl enable vsftpd.service
5/6版本:chkconfig --list
7版本:systemctl list-units --type=service
1、systemctl重启系统服务(以重启vsftpd举例)。
5/6版本:/etc/init.d/vsftpd restart 或者 service vsftpd restart
7版本:systemctl restart vsftpd.service