Store the local linux log File on a server-Linux Enterprise Application-Linux server application information. The following is a detailed description. Server (IP: 192.168.0.111:
#1. first obtain the port number information!
[Root @ linux ~] # Grep 514/etc/services
Syslogs 514/udp
# Note that this line must exist in your/etc/services.
# If this line does not exist, you can manually add it!
#2. Modify the syslogd STARTUP configuration file, usually in/etc/sysconfig!
[Root @ linux ~] # Vi/etc/sysconfig/syslog
# Find the following line:
SYSLOGD_OPTIONS = "-m 0"
# Change to the bottom!
SYSLOGD_OPTIONS = "-m 0-r"
#3. Restart and observe syslogd!
[Root @ linux ~] #/Etc/init. d/syslog restart
[Root @ linux ~] # Netstat-tlunp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Udp 0 0 0.0.0.0: 514 0.0.0.0: * 24314/syslogd
# Hey hey! Is your logon file host properly set ?? 「 Sang 」
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service