Editing /etc/passwd
won't work in iOS, so in order to change default shell in iOS you need to edit /etc/master.passwd
. You can change root's default shell to bash like this -- root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/bash
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
启动 mongodb: | |
> mongod --dbpath [dir] | |
# 使用安全认证、指定路径、指定日志地址 | |
> mongod --auth --dbpath /usr/mongo/data --logfile /var/mongo.log | |
# 关闭服务器 | |
> db.shutdownServer() | |
# 修复 | |
> mongod --repair | |
mongodb commands: |