Update README.md

This commit is contained in:
chiu 2020-06-30 17:20:37 +08:00
parent 5dd37635dc
commit 82fd837268
1 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,7 @@ $ # Login the new create site with rulingcom account and choose “Admin Area”
## 開啟crontab的log(獨立顯示) ## 開啟crontab的log(獨立顯示)
### Open the file ### Open the file
```sh ```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 ```sh
@ -139,6 +139,7 @@ You should now see a cron log file here: /var/log/cron.log
```sh ```sh
#### 安裝postfix以避免NO MTA installed. #### 安裝postfix以避免NO MTA installed.
sudo apt-get install -y postfix sudo apt-get install -y postfix
sudo service postfix start
$ sudo crontab -e $ sudo crontab -e
# 內容如下: # 內容如下:
# 0 3 * * * mongodump -o /home/backup/db/`date "+\%Y\%m\%d"`_db # 0 3 * * * mongodump -o /home/backup/db/`date "+\%Y\%m\%d"`_db