03 2021 档案

在linux上定时修改root密码,以邮件形式发送给使用者
摘要:一、准备条件 1、服务器连上外网 2、需要事先安装sendmail [root@slave ~] # mail -s "test" 111111@qq.com < /tmp/user.log 如果报下面错误 -bash: mail: command not found 是因为 mailx 和 who 阅读全文

posted @ 2021-03-31 18:47 泽一年 阅读(900) 评论(0) 推荐(0)

在linux nginx服务器上,给内网ip配置https
摘要:1)安装OpenSSL //yum install mod_ssl openssl yum -y install openssl openssl-devel mkdir /etc/pki/nginx cd /etc/pki/nginx 2)生成私钥和自签证书 openssl req -newkey 阅读全文

posted @ 2021-03-30 11:39 泽一年 阅读(3847) 评论(0) 推荐(0)

在linux apache服务器上,给内网ip配置https
摘要:1)安装OpenSSL yum install mod_ssl openssl 2)生成2048位的加密秘钥 openssl genrsa -out ca.key 2048 3)生成服务器公钥(CSR) openssl req -new -key ca.key -out ca.csr 4)生成类型为 阅读全文

posted @ 2021-03-15 19:06 泽一年 阅读(830) 评论(0) 推荐(0)

导航