Update README.md
This commit is contained in:
parent
71c910dec0
commit
72962672b9
|
@ -567,12 +567,13 @@ network:
|
||||||
search:
|
search:
|
||||||
- rulingcom.com
|
- rulingcom.com
|
||||||
version: 2
|
version: 2
|
||||||
### 六、如果 /etc/init.d/mongod 遺失(適用於ubuntu14.04以上)
|
## 六、如果 /etc/init.d/mongod 遺失(適用於ubuntu14.04以上)
|
||||||
```sh
|
```sh
|
||||||
# 建立 mongod service
|
# 建立 mongod service
|
||||||
$ sudo vim /etc/init.d/mongod #請查看以下/etc/init.d/mongod之內容
|
$ sudo vim /etc/init.d/mongod #請查看以下/etc/init.d/mongod之內容
|
||||||
$ sudo chmod +x /etc/init.d/mongod
|
$ sudo chmod +x /etc/init.d/mongod
|
||||||
```
|
```
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
#此為/etc/init.d/mongod之內容
|
#此為/etc/init.d/mongod之內容
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
Loading…
Reference in New Issue