环境:国产麒麟系统 sp3
数据库是mongodb centos_x86 4.0.24
openssl : 1.1.1.1f 、1.0.2u
情况:安装的mongodb默认缺失libcrypto.so.10、libssl.so.10路径。
在进行了1.0.2u openssl下载后,将libcrypto.so.10、libssl.so.10路径补齐,但是运行还是提示libcrypto.so.10、libssl.so.10无版本信息
查看 systemctl status mongodb.service 输出
● mongodb.service - mongodb-service
Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2024-08-20 11:32:45 CST; 4min 30s ago
Process: 50387 ExecStart=/mongodb/file/bin/mongod --config /mongodb/file/bin/mongodb.conf (code=exited, status=127)
Aug 20 11:32:45 ecs-2024815172222-3.novalocal systemd[1]: Starting mongodb-service...
Aug 20 11:32:45 ecs-2024815172222-3.novalocal mongod[50387]: /mongodb/file/bin/mongod: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: N>
Aug 20 11:32:45 ecs-2024815172222-3.novalocal systemd[1]: mongodb.service: Control process exited, code=exited, status=127/n/a
Aug 20 11:32:45 ecs-2024815172222-3.novalocal systemd[1]: mongodb.service: Failed with result 'exit-code'.
Aug 20 11:32:45 ecs-2024815172222-3.novalocal systemd[1]: Failed to start mongodb-service.
lines 1-10/10 (END)
查看 journalctl -xe 输出
Aug 20 11:38:11 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit kylin-kms-activation.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
Aug 20 11:38:11 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit kylin-kms-activation.service has entered the 'failed' state with result 'exit-code'.
Aug 20 11:38:16 ecs-2024815172222-3.novalocal sudo[50410]: pam_unix(sudo:session): session closed for user root
Aug 20 11:38:16 ecs-2024815172222-3.novalocal audit[50410]: USER_END pid=50410 uid=0 auid=0 ses=5 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct=>
Aug 20 11:38:16 ecs-2024815172222-3.novalocal audit[50410]: CRED_DISP pid=50410 uid=0 auid=0 ses=5 msg='op=PAM:setcred grantors=pam_env,pam_faillock,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr>
Aug 20 11:38:41 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Service RestartSec=30s expired, scheduling restart.
Aug 20 11:38:41 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Scheduled restart job, restart counter is at 4539.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Automatic restarting of the unit kylin-kms-activation.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 20 11:38:41 ecs-2024815172222-3.novalocal audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kylin-kms-activation comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr>
Aug 20 11:38:41 ecs-2024815172222-3.novalocal audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kylin-kms-activation comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=>
Aug 20 11:38:41 ecs-2024815172222-3.novalocal systemd[1]: Stopped run kylin_kms_daemon at boot time.
-- Subject: A stop job for unit kylin-kms-activation.service has finished
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A stop job for unit kylin-kms-activation.service has finished.
--
-- The job identifier is 432368 and the job result is done.
Aug 20 11:38:41 ecs-2024815172222-3.novalocal audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kylin-kms-activation comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr>
Aug 20 11:38:41 ecs-2024815172222-3.novalocal systemd[1]: Started run kylin_kms_daemon at boot time.
-- Subject: A start job for unit kylin-kms-activation.service has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit kylin-kms-activation.service has finished successfully.
--
-- The job identifier is 432368.
Aug 20 11:39:41 ecs-2024815172222-3.novalocal audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kylin-kms-activation comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=>
Aug 20 11:39:41 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit kylin-kms-activation.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
Aug 20 11:39:41 ecs-2024815172222-3.novalocal systemd[1]: kylin-kms-activation.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit kylin-kms-activation.service has entered the 'failed' state with result 'exit-code'.