大网数据广告活动
服务器运维问答

How to restart openssl on debian

· 52CE 我爱测

I have made some changes in openssl.cnf and wants to restart service. Normally I would just restart machine for changes to take effect but I don't want to restart machine. Tried sudo systemctl restart openssl but it didn't work a…

问题原文

原帖链接 · Frank Martin · CC BY-SA 4.0

I have made some changes in openssl.cnf and wants to restart service. Normally I would just restart machine for changes to take effect but I don't want to restart machine. Tried sudo systemctl restart openssl but it didn't work as there is no such service.

How to I restart or reload openssl after making changes in configuration?

已采纳解答

原帖链接 · Mircea Vutcovici · CC BY-SA 4.0

You can find all running processes that you might want to restart after an openssl change with:

ps -p $(grep -El 'libssl.so|libcrypto.so' /proc/*/maps|sed -r 's/\/proc\/([0-9]+)\/maps/\1/'|sort -nu)

The command search in the memory maps of each process and look for some of the openssl libs that are used by that command. Then it is displaying the process details for each match.

E.g. for systemd-journal process:

[root@laptop-rh ~]# grep -E 'libssl.so|libcrypto.so' /proc/938/maps
7f08dc800000-7f08dc8ad000 r--p 00000000 00:26 6540246                    /usr/lib64/libcrypto.so.3.0.9
7f08dc8ad000-7f08dcb11000 r-xp 000ad000 00:26 6540246                    /usr/lib64/libcrypto.so.3.0.9
7f08dcb11000-7f08dcbca000 r--p 00311000 00:26 6540246                    /usr/lib64/libcrypto.so.3.0.9
7f08dcbca000-7f08dcc21000 r--p 003ca000 00:26 6540246                    /usr/lib64/libcrypto.so.3.0.9
7f08dcc21000-7f08dcc24000 rw-p 00421000 00:26 6540246                    /usr/lib64/libcrypto.so.3.0.9
[root@laptop-rh ~]# ps -p 938
    PID TTY          TIME CMD
    938 ?        00:00:10 systemd-journal
[root@laptop-rh ~]# 

See also checkrestart.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-10-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。