Ubuntu16.04安装mongo-express
1、先安装npmapt install npm

2、安装mongo-expressnpm install mongo-express

3、等待安装完成

4、进入/root/node_modules/mongo-express/目录复制或者把config.default.js改名为config.js的新文件.cd/root/node_modules/mongo-express/

5、需要提前定义几个环境变量Mongodb数据库地址export ME_CONFIG_MONGODB_SERVER='192.168.2.250'Mongodb数据库端口 export ME_CONFIG_MONGODB_PORT=27017是否使用管理员export ME_CONFIG_MONGODB_ENABLE_ADMIN=trueweb界面地址监听export VCAP_APP_HOST=0.0.0.0设置数据库账号exportME_CONFIG_MONGODB_ADMINUSERNAME='guoke'设置数据库密码exportME_CONFIG_MONGODB_ADMINPASSWORD='55'

6、安装nodeapt install nodejs-legacy

7、启动node app

8、在浏览器中打开就行了http://192.168.2.250:8081
