与安全相关的服务:
1、防火墙服务程序
查看防火墙状态:systemctl status firewalld
临时关闭防火墙:systemctl stop firewalld
永久关闭防火墙:systemctl disable firewalld
查看服务是否正常运行:systemctl is-active 服务名
查看服务是否开机启动:systemctl is-enable 服务名
2、系统自带的selinux程序
确认服务是否开启:getenforce
临时关闭:setenforce 0
临时开启:setenforce 1
永久开启或关闭:vi /etc/selinux/config selinux=disabled
系统编码:
1、查看默认编码信息:echo $LANG
2、临时修改编码格式:LANG=en_US.编码格式
3、永久修改编码格式:
1):编辑 /etc/profile文件,在文件中加入/修改 “export LANG=‘en_US.编码格式’”
2):编辑 /etc/locale.conf