The number of processes available for MongoDB in the system is not enough, you need to change the default settings by editing the /etc/security/limits.d/20-nproc.conf file and paste the following lines at the end.

if you want to move to other directory or How to change mongodb default data path you can change /etc/mongod.conf and then change dbpath : /var/lib/mongo to your db path you want for example dbpath :/home/jagolinux and you can change mongodb log here.

allow mongodb port on selinux

firewall-cmd --permanent --add-port=27017/tcp
firewall-cmd --reload

and then start the service and enable service for starting automatically after system reboot mongodb.