在配置之前,我们还需要生成一个密钥,SSH 登录 VPS 后运行以下命令,会在当前目录生成名为 “dhparam.pem” 的密钥文件,备用。 openssl dhparam -out dhparam.pem 2048 将将两个证书和这个生成的pem文件都保存在了 …
装lnmp都知道,利用SSH备份是很快很简单的事。其实官方也提供了sh脚本,下载地址脚本下载地址:http://soft.vpser.net/lnmp/backup.sh。 运行前: 需要提前在VPS安装好lftp,lftp功能上比较强大,CentOS直接执行:y…
错误: 400 Bad Request: The plain HTTP request was sent to HTTPS port 因为/usr/local/nginx/conf/nginx.conf 配置中会 include fcgi.conf所以我们去修改fcgi.conf添加一个HTTPS的参数 [root@*** ~]# vi /usr…
因为nginx不支持.htaccess,所以在防盗链上比较麻烦。1.确定要修改的文件如果你安装lnmp后,没有新建站点,而是使用默认站点,那你需要修改的文件是/usr/local/nginx/conf/nginx.conf如果你新建了站点,那么要修改…
nginx启动报错nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Ad
作者:皇家元林 时间:2011年12月01日 围观者: 84 人 【0条评论】nginx启动报错,信息如下:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] bind() to 0.0.0.0…