while i want to active mongo on linux i get this error and it and it wont work
$ sudo systemctl status mongod
● mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: disabled) Active: failed (Result: signal) since Sun 2021-08-01 13:39:18 +03; 47s ago Docs: https://docs.mongodb.org/manual Process: 12854 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=killed, signal=ILL) Main PID: 12854 (code=killed, signal=ILL) CPU: 19ms
Aug 01 13:39:18 jr systemd[1]: Started MongoDB Database Server. Aug 01 13:39:18 jr systemd[1]: mongod.service: Main process exited, code=killed, status=4/ILL Aug 01 13:39:18 jr systemd[1]: mongod.service: Failed with result 'signal'.
and while i type mongod it say
$ mongod
zsh: illegal hardware instruction mongod
i had the same problem with the same message. Seems to be a problem of processor compability.
Found this post https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610
Check if your pocessor has the flags mentioned in the answer with the command:
if not, you can try with an older version of mongo. In my case my processor can't handle mongo4.4, but installed mongo4.2 and works fine, but depends of your processor and SO.