In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of FAQ commonly used in ubuntu operating system, which is very detailed and has certain reference value. Friends who are interested must finish it!
1. Record how ubuntu server views the crontab log
Crontab logging
Modify rsyslog
Sudo vim / etc/rsyslog.d/50-default.conf
Cron.* / var/log/cron.log # removes the commentator before cron
Restart rsyslog
Sudo service rsyslog restart
View crontab Log
Less / var/log/cron.log
II. Ubuntu resets the default editor of crontab-e
Ubuntu System Admin set up scheduled tasks on the first-line server, accidentally chose nano, because the previous contact is redhat series, not accustomed to using nano, so want to reset, look up on the Internet, there seems to be no.
In desperation, I reinstalled a server to test and found that when you first crontab-e choose the editor, it will remind you that if you want to change your choice in the future, enter select-editor alas, it is still not careful enough. Sudo select-editor chooses vim to do it.
Root@ubuntu:/var/www# select-editor
Select an editor. To change later, run 'select-editor'.
1. / bin/ed
2. / bin/nano
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.