From 82fd837268666402e1d2979aeb21733c8f2f5557 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 30 Jun 2020 17:20:37 +0800 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f24433a..14d3e92 100644 --- a/README.md +++ b/README.md @@ -121,11 +121,11 @@ $ # Login the new create site with rulingcom account and choose “Admin Area” ``` ## 開啟crontab的log(獨立顯示) -###Open the file +### Open the file ```sh -vim /etc/rsyslog.d/50-default.conf +sudo vim /etc/rsyslog.d/50-default.conf ``` -###Find the line that starts with: #cron.* +### Find the line that starts with: #cron.* ```sh uncomment that line, save the file, and restart rsyslog: @@ -139,6 +139,7 @@ You should now see a cron log file here: /var/log/cron.log ```sh #### 安裝postfix,以避免NO MTA installed. sudo apt-get install -y postfix +sudo service postfix start $ sudo crontab -e # 內容如下: # 0 3 * * * mongodump -o /home/backup/db/`date "+\%Y\%m\%d"`_db