mongodb
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
install MongoDB community edition
Configure Remote Access for MongoDB
vi /etc/mongod.conf
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1,164.52.195.243
PHPMyAdmin alternative is MongoDB compass
mongodb://127.0.0.1:27017/
mongodb://192.227.112.108:27017
IP:port
root@vmi1115207:~# netstat -plunt | grep 27017
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 6099/mongod
tcp 0 0 89.117.56.60:27017 0.0.0.0:* LISTEN 6099/mongod
89.117.56.60 this is same server where mongodb is installed
then telnet connected
sudo service mongod stop
sudo apt-get purge mongodb-org*
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n
for Linux
$ sudo rm -rf /tmp/mongodb-27017.sock
$ sudo service mongod start
/var/lib/mongodb/WiredTiger.turtle: handle-open: open: Permission denied"
sudo chown -R mongodb:mongodb /var/lib/mongodb/*
Comments
Post a Comment