In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Experimental objectives:
Build and use centralized management of logs
Introduction:
Red font is the focus, the firewall must be turned off, otherwise it will affect the error report of the experiment.
Colored fonts are annotated and easy to understand
The steps of the experiment:
Actions in client A:
[root@localhost~] # iptables-F / / first turn off the firewall
[root@localhost ~] # serviceiptables save / / Save the settings to turn off the firewall
[root@localhost ~] # vim/etc/syslog.conf / / set the location of the cron log in the syslog.conf file to @ 192.168.1.1 (this address is the server address) as shown below: as the picture cannot be displayed, please see attachment syslog.conf
[root@localhost ~] # service syslogrestart / / restart the syslog service to make syslog.conf effective
Configuration of server A:
[root@localhost~] # iptables-F / / first of all, turn off the firewall
[root@localhost ~] # service iptablessave / / Save firewall settings
[root@localhost ~] # vim/etc/sysconfig/syslog / / change the configuration of the syslog of the receiving log host, as shown in the following figure, add-r to the cursor to OK. Save exit / / the picture cannot be displayed here. View attachment syslog.
[root@localhost ~] # tail-f/var/log/cron / / Open message reception and wait
Let's go to client A trigger time cron:
The operations on the client are as follows:
[root@localhost~] # crontab-e / / you can see the following prompt on server A: the experiment is successful ~ ~
Experimental summary: although the experiment is not big, it is a good beginning for us to understand the enterprise environment.
Pure hand fight!
Attachment: http://down.51cto.com/data/2365586
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.