分类 Linux 下的文章

server
{
listen 443 ssl http2;
server_name sign.mgu.cc;
index index.html index.htm index.php;
root /home/wwwroot/sign.mgu.cc/Tieba-Cloud-Sign;
ssl on;
ssl_certificate /root/ssl/1__.mgu.cc_bundle.crt;
ssl_certificate_key /root/ssl/mgu.cc_key.txt;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

- 阅读剩余部分 -

可以用私钥来做这件事。生成一个解密的key文件,替代原来key文件。

openssl rsa -in server.key -out server.key.unsecure
然后修改配置文件

这样就可以不用输入密码了

错误报告邮件如下
/etc/cron.daily/spamassassin:
wget: MIRRORED.BY: Permission denied
error: unable to refresh mirrors file for channel updates.spamassassin.org, using old file
wget: 1742071.tar.gz: Permission denied
wget: 1742071.tar.gz: Permission denied
wget: 1742071.tar.gz: Permission denied
wget: 1742071.tar.gz: Permission denied
channel: could not find working mirror, channel failed
sa-update failed for unknown reasons

解决方法
chown -R debian-spamd:debian-spamd /var/lib/spamassassin
chmod -R 700 /var/lib/spamassassin/

首先使用如下命令,查看当前系统使用的内核版本,,避免不必要的麻烦以防删错内核
root@debian8:~# uname -a

列出所有安装的内核
root@debian8:~# dpkg --get-selections|grep linux
linux-headers-2.6.32-32 install
linux-headers-2.6.32-32-generic install
linux-headers-generic install
linux-image-2.6.32-21-generic install

使用apt-get的卸载参数来删除旧内核
root@debian8:~# apt-get remove linux-image-2.6.32-21-generic

删除内核后,执行 update-grub 来更新grub启动菜单。

清除软件包配置
dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`;