Update README.md

This commit is contained in:
chiu 2021-05-07 17:26:38 +08:00
parent 1f57763766
commit 347606b5f2
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ $ sudo chmod 755 /etc/rc.local
$ update-rc.d rc.local defaults
$ sudo systemctl start orbit
$ sudo systemctl start rc.local
$ sudo systemctl enable mongod.service #ubuntu18.04以上適用(可在系統boot時自動開啟mongo)
$ sudo mv /etc/init.d/mongod /etc/systemd/system/ && sudo systemctl enable mongod.service #如果sudo systemctl enable mongod.service失敗時
$ sudo crontab -e #加入以下內容
# @reboot /etc/init.d/orbit start
# @reboot service mongod restart