Skip to content

Instantly share code, notes, and snippets.

View ialex32x's full-sized avatar

ialex32x ialex32x

  • Funk Games
  • Shanghai
  • 04:16 (UTC +08:00)
View GitHub Profile
@githubutilities
githubutilities / bash.md
Last active January 5, 2023 16:59
cURL, git, ssl in Jailbreak iPhone

Change default shell

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.

Reference

@ialex32x
ialex32x / Mango Tips
Last active December 14, 2015 22:39
mongodb 基本命令
启动 mongodb:
> mongod --dbpath [dir]
# 使用安全认证、指定路径、指定日志地址
> mongod --auth --dbpath /usr/mongo/data --logfile /var/mongo.log
# 关闭服务器
> db.shutdownServer()
# 修复
> mongod --repair
mongodb commands: