mongodb学习
[root@test15171x ~]# ps aux | grep mongo
root 21860 0.0 0.9 756612 41372 ? Sl Dec30 0:00 /usr/local/mongodb/bin/mongod
[root@test15171x ~]# netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 21860/mongod
tcp 0 0 0.0.0.0:28017 0.0.0.0:* LISTEN 21860/mongod
启动mongod程序,
[root@test15171x ~]# nohup /usr/local/mongodb/bin/mongod &
[1] 5753
[root@test15171x ~]# nohup: appending output to “nohup.out”
[1] 5753
[root@test15171x ~]# nohup: appending output to “nohup.out”
在当前目录下生成nohup.out
[root@test15171x ~]# find ./ -name 'nohup.out'
./nohup.out
./nohup.out
MongoDB 服务器程序mongod进程ID是21860
ps -ef ps aux
服务器程序mongod监听27017端口
mongod还会启动一个非常基本的http服务器,监听28017端口
可以通过浏览器访问 http://10.16.15.171:28017/ 获取数据库管理信息