Some Reflections after the Scholarship Presentation

I made a scholarship presentation last evening. There were 17 students presenting for this Comprehensive Scholarship, and I was lucky to be one of them.

 

However, I hardly thought I could get this opportunity when I clicked the applying button casually serveral days ago. When the counselor told me that I've made it to the presentation stage, I was really surprised.

 

But after I saw the student list , I realized that I was probably just "lucky" to get this opportunity. It seemed that many top students didn't even submit the application, while I happened to apply (just for fun), so I was involved.

 

In fact, though my grade was not bad, it's far from excellent. Maybe they chose me because I was versatile. I comforted myself. Such being the case, I started to prepare for the presentation.

 

I was the third student to make the presentation. After I finished it, I began to listen to other students' presentation. Then I was stunned.

 

Most of them did not only excel at academics, but also perform well in many other aspects like art, sports and social work. They had an ample amount of experience. I felt ashamed. Then I thought of one of my friend's words—"the gap between people enlarges hugely during college years". I was lost in thought.

 

I recalled my freshman year. Not so satisfying. No excellent grade, few social activities, poor time management... I was even kind of shiftless.

 

There definitely needs to be a change.

Let’s Encrypt: 让Certbot续期证书后重新加载Nginx

普通用户使用 Let's Encrypt 证书有 90 天有效期的限制,但通过 Certbot 可以实现证书的自动续期。不过,更新证书后必须重新加载 nginx 配置文件才能生效。遗憾的是,Certbot 的默认定时任务并没有包含重载配置文件的命令。

 

为了避免未重载配置文件导致的服务不可用,我们需要对 Certbot 任务配置文件做出修改。其位于 /etc/cron.d/certbot.

默认配置大概是这样:

 

我们只需要将向最后一行命令末尾添加 --renew-hook "/etc/init.d/nginx reload" 即可。即:

--renew-hook 后面的命令会在每次成功续期证书后运行。此处即为重新加载 nginx 配置文件。

 

参考链接:https://www.guyrutenberg.com/2017/01/01/lets-encrypt-reload-nginx-after-renewing-certificates/

本博客刚刚增加了邮件订阅功能哦!如果你对我的博客感兴趣,欢迎通过侧边栏的订阅小工具订阅(使用屏幕较小的设备访问时,侧边栏可能隐藏)。

雨中小记

雨下得越大,内心却越宁静。
虽然我不怎么喜欢雨天,但是,我好像喜欢雨的声音,和下雨时那种清爽的感觉。
自然界的声音自然具有神奇的力量,雨中人的思绪雨中在静静地游荡。

 

阅读全文→

祝我的网站五周岁快乐!同时也是迁入Vultr一周年纪念哦。