-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.json
1 lines (1 loc) · 8.98 KB
/
content.json
1
{"meta":{"title":"Cee","subtitle":"","description":"目前是一名互联网创业者、独立音乐人、LOLer,对各种Web技术都充满好奇心,本博客记录Web相关笔记和实践仅供参考。","author":"Cee","url":"https://cee.cx","root":"/"},"pages":[],"posts":[{"title":"使用中项目推荐","slug":"projects","date":"2020-01-17T05:48:05.000Z","updated":"2020-01-17T06:44:59.587Z","comments":true,"path":"projects/","link":"","permalink":"https://cee.cx/projects/","excerpt":"","text":"Gravatar 中国镜像首先个人对使用的各种服务速度有极高的要求,而现有的国内 Gravatar 镜像速度都不理想,尝试过 V2EX、Loli 的镜像,最后还是自己动手了。后端使用多台 HK 实例负载均衡反代 Gravatar 官方源,前端采用阿里云全球 CDN 进行加速。此项目免费提供给大家使用,目前每月实例和 CDN 带宽费用也是一笔不小的开支,如果你觉得好用的话不妨可以赞助一下这个项目。 :)","categories":[],"tags":[],"author":"Cee"},{"title":"谷歌云开启本地 SSH 工具 Root 用户登录权限","slug":"google-cloud-local-root-login","date":"2019-10-11T05:20:49.000Z","updated":"2020-01-17T07:37:55.236Z","comments":true,"path":"google-cloud-local-root-login/","link":"","permalink":"https://cee.cx/google-cloud-local-root-login/","excerpt":"","text":"本文讲两种本地客户端登录 Google Cloud 的方法: 1. 开启谷歌云 Root 账户密码使用本地 SSH 客户端登录。 2. 通过 Google Cloud SSH 密钥使用 XShell 客户端登录。 默认谷歌是通过 GCloud 命令在浏览器窗口访问 SSH 控制台的,它是这样实现的: gcloud beta compute --project "Project Name" ssh --zone "VM Zone" "VM ID" 但是我们一般都习惯了用本地客户端登录 SSH,而有时候一些操作本地直接登录的确更方便,开启本地登录还是很有必要的,不过我建议第二种方法,因为开了 Root 账户密码后会让 Hacker 对你的实例更有机可乘。 开启谷歌云 Root 账户密码使用本地 SSH 客户端登录 网页打开 Google SSH 控制台连接到实例,并切换到 Root 账户: sudo -i 打开SSH配置文件: vi /etc/ssh/sshd_config 按 i 进入 INSERT 模式后修改以下两行: #开启 Root 登录 PermitRootLogin yes #开启 Root 密码 PasswordAuthentication yes 保存并退出: :wq 设置 Root 登录密码: passwd root 重启 SSH 服务后就可以直接用 Root 账户登录了。 #Ubuntu: /etc/init.d/ssh restart #CentOS: systemctl restart sshd.service通过 Google Cloud SSH 密钥使用 XShell 客户端登录 XShell 菜单栏 -> 工具 -> 新建用户密钥生成向导: 保存好你的公钥以便待会使用 添加 SSH 密钥到 Google Cloud: 粘贴你刚才生成的密钥,并在后面加上你密钥生成时设置的用户名然后保存。 使用 XShell 连接测试 如果登录成功你可以使用 sudo -i 切到 Root 账户,请保存好你的密钥信息,如果不慎丢失也没关系,删除谷歌云上你刚才创建的 SSH 密钥根据操作重新创建一个即可。我比较推荐这种安全登录方法,没有涉及到登录密码信息,也不需要你输入,除非 Hacker 有你的 SSH 密钥证书,不然几乎没有可能破解你的 SSH 登录权限。","categories":[{"name":"Cloud","slug":"Cloud","permalink":"https://cee.cx/categories/Cloud/"}],"tags":[{"name":"Google Cloud","slug":"Google-Cloud","permalink":"https://cee.cx/tags/Google-Cloud/"},{"name":"XShell","slug":"XShell","permalink":"https://cee.cx/tags/XShell/"}]},{"title":"CyberPanel:Failed to obtain SSL for domain 解决方案","slug":"cyberpanel-failed-to-obtain-ssl-for-domain","date":"2019-10-07T20:00:54.000Z","updated":"2020-01-17T06:41:54.188Z","comments":true,"path":"cyberpanel-failed-to-obtain-ssl-for-domain/","link":"","permalink":"https://cee.cx/cyberpanel-failed-to-obtain-ssl-for-domain/","excerpt":"","text":"颁发 SSL 证书无响应或超时,出现报错: 283 Failed to obtain SSL for domain. [issueSSLForDomain] [createVirtualHost] 80% 是 DNS 问题,可能你用了反代或主站用了 CDN,导致获取不到正确的 Server IP 而颁发失败,我的解决办法是:解析到正确的 Server IP 生效后,SSH 执行以下代码然后面板内再次申请签发证书: wget -O - https://get.acme.sh | sh 而 20% 是被 Lets Encrypt 限制,说明近期同一域名颁发次数过多,Lets Encrypt 限制每周同一域名签发次数是 5 次(不知道是否记错,反正次数不多)。","categories":[{"name":"Web","slug":"Web","permalink":"https://cee.cx/categories/Web/"}],"tags":[{"name":"CyberPanel","slug":"CyberPanel","permalink":"https://cee.cx/tags/CyberPanel/"}]},{"title":"Sublime Text 3 安装主题 Darkula","slug":"sublime-install-darkula-theme","date":"2019-10-07T12:20:57.000Z","updated":"2020-01-17T07:41:32.860Z","comments":true,"path":"sublime-install-darkula-theme/","link":"","permalink":"https://cee.cx/sublime-install-darkula-theme/","excerpt":"","text":"Sublime Text 3 主题支持手动安装、Git 安装和 Package Control 安装方式,这里采用比较方便的 Package Control 来安装 Darkula Theme。 如果你没有安装 Package Control 需要先安装 Package Control,按 Ctrl + ~ 键调出控制台,然后在控制台输入并回车: import urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed\\_packages\\_path();urllib.request.install\\_opener(urllib.request.build\\_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())在 Preferences 里有 Package Control 就说明已经安装成功。 打开 Package Control,输入 Install Package 回车,输入 Darkula Color Scheme 回车,这时已经完成安装,但需要你到配色方案中选择 Darkula Color Scheme,这样就成功启用了。 提示:Darkula 不是 Dracula 主题哦。","categories":[{"name":"Program","slug":"Program","permalink":"https://cee.cx/categories/Program/"}],"tags":[{"name":"Sublime","slug":"Sublime","permalink":"https://cee.cx/tags/Sublime/"}]},{"title":"AMH5.8 LAMP 环境开启 GZIP 压缩加速网站访问","slug":"amh-lamp-enable-gzip","date":"2019-09-27T10:25:14.000Z","updated":"2020-01-17T06:55:49.265Z","comments":true,"path":"amh-lamp-enable-gzip/","link":"","permalink":"https://cee.cx/amh-lamp-enable-gzip/","excerpt":"","text":"AMH 面板默认已经集成了 GZIP,只是没有对所有网站开启,需要手动启用。网上找的教程很多都太老旧了,本规则 AMH5.8 面板 LAMP 环境可用。 使用方法:下载 AMH 的 AMHRewrite 扩展,新建规则,把伪静态规则添加在里面应用到你的网站即可,适用所有 Apache 环境,非 AMH 用户可以添加到 .htaccess 规则。 AMH 官方给的规则: <ifmodule mod_deflate.c> DeflateCompressionLevel 6 AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/php AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript </ifmodule>精简了一下规则写法: <IfModule mod_deflate.c> SetOutputFilter DEFLATE DeflateCompressionLevel 9 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript application/x-httpd-php AddOutputFilter DEFLATE js css </IfModule>SetOutputFilter DEFLATE:告诉 Apache 对传输到浏览器的内容进行压缩。 DeflateCompressionLevel:压缩等级。官方设置是 6 级,我这里设置 9 级,如果服务器配置比较低可以设置低一点,因为在高并发和大流量下压缩等级太高可能会导致 CPU 负荷较大。 压缩类型:html、xml、php、css、js 为什么不使用 .htaccess 添加?当然可以,只是以防 .htaccess 文件 Web 程序频繁修改可能会覆盖,添加到 .htaccess 是一样的效果。","categories":[{"name":"Web","slug":"Web","permalink":"https://cee.cx/categories/Web/"}],"tags":[{"name":"AMH","slug":"AMH","permalink":"https://cee.cx/tags/AMH/"},{"name":"GZIP","slug":"GZIP","permalink":"https://cee.cx/tags/GZIP/"},{"name":"LAMP","slug":"LAMP","permalink":"https://cee.cx/tags/LAMP/"}]}],"categories":[{"name":"Cloud","slug":"Cloud","permalink":"https://cee.cx/categories/Cloud/"},{"name":"Web","slug":"Web","permalink":"https://cee.cx/categories/Web/"},{"name":"Program","slug":"Program","permalink":"https://cee.cx/categories/Program/"}],"tags":[{"name":"Google Cloud","slug":"Google-Cloud","permalink":"https://cee.cx/tags/Google-Cloud/"},{"name":"XShell","slug":"XShell","permalink":"https://cee.cx/tags/XShell/"},{"name":"CyberPanel","slug":"CyberPanel","permalink":"https://cee.cx/tags/CyberPanel/"},{"name":"Sublime","slug":"Sublime","permalink":"https://cee.cx/tags/Sublime/"},{"name":"AMH","slug":"AMH","permalink":"https://cee.cx/tags/AMH/"},{"name":"GZIP","slug":"GZIP","permalink":"https://cee.cx/tags/GZIP/"},{"name":"LAMP","slug":"LAMP","permalink":"https://cee.cx/tags/LAMP/"}]}