注:以下操作均在mongodb3的版本下执行,不适用mongodb2.*的版本安装并依次启动mongodbmongod --port=27017 --dbpath=/data/mongodb/data --logpath=/data/mongodb/log/mongodb.log --logappend --replSet=rs1 --forkmongod --port=27018 --dbpath=/data/mongodb2/data --logpath=/data/mongod
安装依赖yum install xz wget gcc make gdbm-devel openssl-devel sqlite-devel zlib-devel bzip2-devel -y下载源码:wget -c https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz备份Python2的环境mv /usr/bin/python /usr/bin/python_bak编译安装3:tar zxvf Python-3.6.2.tgzcd P
由于OSX不允许system级以外的服务使用1024以下的端口,要开启nginx的80端口,需要以下操作:在使用brew安装nginx以后,可以在/usr/local/opt/nginx 下找到nginx对应的plist文件,比如: homebrew.mxcl.nginx.plistsudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemonssudo launchctl load -w /Library/LaunchDaemons/hom