# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22707/nginx -g daem
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 15007/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 700/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 22707/nginx -g daem
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 31419/mongod
tcp6 0 0 :::8080 :::* LISTEN 4116/node
tcp6 0 0 :::22 :::* LISTEN 700/sshd
pm2 restart "mongod --config /etc/mongod.conf"
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22707/nginx -g daem
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 15007/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 700/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 22707/nginx -g daem
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 31281/mongod
tcp6 0 0 :::8080 :::* LISTEN 4116/node
tcp6 0 0 :::22 :::* LISTEN 700/sshd
Запускать mongod через pm2 как-то странно.
В крайнем случае - закроете порт через iptables. :)