一、环境:
1、系统:Centos 6.4
2、角色说明
服务端:172.28.26.188
客户端:172.28.26.189
二、部署:
1、服务端:
yum -y install rsyslog
vi /etc/sysconfig/rsyslog
SYSLOGD_OPTIONS="-c 2 -r514 -x -m 240" KLOGD_OPTIONS="-x"
重启服务
/etc/init.d/rsyslog restart
2、客户端:
echo "*.* @172.28.26.188:514" >> /etc/rsyslog.conf
重启服务:
/etc/init.d/rsyslog restart
export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger "[euid=$(whoami)]":$(who am i):[`pwd`]"$msg"; }'
source /etc/bashrc