日志服务器实验步骤
 服务器端操作: 192.168.0.120
vim /etc/sysconfig/syslog

# -r enables logging from remote machines 接受远程机器的日志
# -x disables DNS lookups on messages recieved with -r 不进行dns查询
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-r -x -m 0"
=======
刷新服务,让配置生效
[root@localhost html]# /etc/init.d/syslog restart
关闭内核日志记录器:                                       [确定]
关闭系统日志记录器:                                       [确定]
启动系统日志记录器:                                       [确定]
启动内核日志记录器:                                       [确定]
=========
 客户端的配置: 192.168.0.253
vim /etc/syslog.conf 添加下面配置 
*.*                     @192.168.0.120
[root@teacher etc]# /etc/init.d/syslog restart
关闭内核日志记录器:                                      [确定]
关闭系统日志记录器:                                      [确定]
启动系统日志记录器:                                      [确定]
启动内核日志记录器:                                      [确定]
[root@teacher etc]#
================
[root@localhost html]# iptables -F
清除防火墙规则
====
[root@localhost html]# getenforce  查看selinux的状态
Disabled
[root@localhost html]# enforcing  代表的是selinux是强制开启的
[root@localhost html]# setenforce 0 
将selinux状态改为宽容模式
=======
ping  服务器端的ip   看是否能ping通,如果不通建议你重新配置下ip地址,查看下网卡类型或者连接状况(虚拟机)
=========