24 gists results Add gist
jay/ certbot做免费证书 2022-10-25 13:20
certbot
yum install certbot
#生成证书
certbot certonly --email icnych@gmail.com --agree-tos --webroot -w /var/www/blogs -d blog.qikqiak.com
#其中-w后面是网站根目录,-d后面是网站域名,所以需要保证目录存在并且可以正常访问。
#更新证书 Let's Encrypt证书的有效期只有90天
$ crontab -l
30 5 1 * * root /usr/bin/certbot renew --renew-hook "/usr/sbin/nginx -s reload"
查看详情
nginx 配置文件
####### nginx.conf
user www www;

worker_processes auto;
worker_cpu_affinity auto;

error_log /home/wwwlogs/nginx_error.log crit;

pid /usr/local/nginx/logs/nginx.pid;
查看详情
jay/ install-nginx 2022-10-25 10:50
linux 上多种方式安装 nginx,LNMP 安装、YUM 安装
linux 上多种方式安装 nginx,LNMP 安装、YUM 安装
# 方式1:一键安装
wget http://soft.vpser.net/lnmp/lnmp1.9.tar.gz && tar -xvf lnmp1.9.tar.gz && cd lnmp1.9 && ./install.sh nginx
./upgrade.sh nginx  # 升级

# help
https://lnmp.org/install.html


查看详情
jay/ cat-name 2019-09-26 15:51
查看linux系统的版本名称
hostnamectl # 信息一览

uname -a # Linux内核版本
uname -r
cat /proc/version
cat /etc/issue

cat /etc/redhat-release # RedHat(centos)
查看详情
1 1 2 2 3

链接返回顶部
test 应景字母 seo © Netnr 2026