28日 2018年06月
By Leo

acme.sh 安装 Let’ s Encrypt 通配符证书

export Ali_Key="xxxxxxx" export Ali_Secret="xxxxxxx" curl https://get.acme.sh | sh source ~/.bashrc ~/.acme.sh/acme.sh --issue --dns dns_ali -d linhongxu.com -d *.linhongxu.com 生成好的文件 Your cert is in /root/.acme.sh/linhongxu.com/linhongxu.com.cer Your cert key is in /root/.acme.sh/linhongxu.com/linhongxu.com.key The intermediate CA cert is in /root/.acme.sh/linhongxu.com/ca.cer And the full chain certs is there: /root/.acme.sh/linhongxu.com/fullchain.ce... [继续阅读]

3372 浏览 评论 Linux , Nginx , 运维
11日 2017年07月
By Leo

Linux操作拾遗——为用户添加Home目录

最近想搞个webhook,由于网站用户是www,而执行git需要在home/www下有.ssh文件夹里面放git的rsa密钥对,结果发现home下面没有www用户,并且使用mkdir也无法创建。具体解决办法如下: (1)先进入root vi /etc/passwd 查看是否指定了家目录 如:username:1002:1002::/home/username:/bin/bash如果没有添加 (一般情况下是有的) (2)cp -a /etc/skel /home/username (3)指定权限: #chown -R username:groupname /home/username参考链接 http://bbs.chinaunix.net/thread-87268-2-1.html [继续阅读]

3382 浏览 评论 Linux , 运维