默认的防火墙规则:
[root@ser01 ~]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
SELinux默认是开启的:
[root@ser01 ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
查看当前语言环境:
[root@ser01 ~]# echo $LANG
zh_CN.UTF-8
[root@ser01 ~]#
[root@ser01 ~]# cat /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
修改语言环境:
[root@ser01 ~]# vi /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
修改为:(中文修改为英文)
LANG="en_US.UTF-8"
重启服务器,才能生效:
[root@ser01 ~]# reboot
服务器重启后,再查看当前语言环境:
[root@ser01 ~]# echo $LANG
en_US.UTF-8
显示时间:
[root@ser1 ~]# date
2017年 09月 24日 星期日 13:55:43 CST
备注:CST 是指中国标准时间
修改时间:(服务器重启后依旧生效)
[root@ser1 ~]# date -s "2017-09-15 14:28:06"
[root@ser1 ~]# hwclock --systohc
[root@ser1 ~]# clock -w
相关文章:
Oracle Linux6.9的安装最小化安装CentOS8最小化安装CentOS7.8Linux常用命令(一)使用Shell脚本监控本机的CPU、内存、分区的使用率Xshell4+密钥对验证CentOS8_在Docker中安装NagiosZabbix使用SNMP监控CentOS6/Redhat6Zabbix使用Agent监控CentOS6/Redhat6CentOS6使用新Yum源+EPELCentOS6_网络基础vsftpd匿名用户CentOS6安装Python3