[root@localhost data]# systemctl stop firewalld.service #停止firewall [root@localhost data]# systemctl disable firewalld.service #禁止firewall开机启动 Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. [root@localhost data]#
Linux启动命令:进入bin,启动
./mongod --dbpath=/data/db/ --config=./mongodb.conf &