文章目录
  1. 1. 将hexo根目录移动后提示少插件
  2. 2. hexo文章标签数目不对
  3. 3. 七牛imageView接口
    1. 3.1. 建议
  4. 4. npm问题

Invincible Iron Man (2015-) 010-000

将hexo根目录移动后提示少插件

1
2
3
takethat@acer /e/hexo-blog_local-bitlock
λ hexo s -p 9090
ERROR Plugin load failed: hexo-generator-feed

解决方法:

在对应的目录下

1
E:\hexo-blog_local-bitlock\node_modules

删除报错的插件文件夹

1
hexo-generator-feed

文件夹??


hexo文章标签数目不对

先移除博客根目录下的**.deploy_git文件夹**和 db.json文件,然

1
2
3
4
hexo clean     #清除缓存
hexo g #生成静态网页
hexo s #启动服务预览
hexo d #开始部署

七牛imageView接口

• 在列表等页面,针对图片地址,加上 ?imageView2/3/w/200/h/100/q/90,这样,在列表页,会对用户上传的图片,在列表页上按照 宽200px、高100px、质量为原图的90%进行展示;

• 在产品的详情页,针对图片地址,加上 ?imageView2/2/w/600/q/95,这样,在详情页面,会对用户上传的图片,按照宽最多为600px、高自适应、质量95%进行展示;


建议

建议PC端用

1
?imageView2/2/h/600

进行裁剪图片

参考


npm问题

  1. npm换源,

    1
    npm install -gd express --registry=http://registry.npm.taobao.org

    只需要使用–registry参数指定镜像服务器地址,为了避免每次安装都需要–registry参数,可以使用如下命令进行永久设置:

    1
    npm config set registry http://registry.npm.taobao.org

前端构建工具gulpjs的使用介绍及技巧

gulp失败

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
takethat@acer_v5573g MINGW32 /d/github/resume_takethat/resume_takethat/test_new/Resume
$ gulp
module.js:471
throw err;
^

Error: Cannot find module 'gulp-sass'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\github\resume_takethat\resume_takethat\test_new\Resume\gulpfile.js:2:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
解决:







 gullp 报错
 
1
```
# SSL 查看证书是否过期: [root@VM_0_8_centos ~]# openssl x509 -noout -dates -in /etc/letsencrypt/live/vivatakethat.com/cert.pem 执行更新操作: `/home/certbot `目录下:
1
# ./certbot-auto renew --dry-run

HTTPS 简介及使用官方工具 Certbot 配置 Let’s Encrypt SSL 安全证书详细教程

[Let’s Encrypt(certbot) renew 证书更新失败,Deserialization error: Could not decode ‘status’ (u’ready’): …] (https://www.jianshu.com/p/798efb9b4ab4)


解决方法;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[root@VM_0_8_centos certbot]# ./certbot-auto renew --no-self-upgrade
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/vivatakethat.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OCSP check failed for /etc/letsencrypt/archive/vivatakethat.com/cert6.pem (are we offline?)
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/ocsp.py", line 168, in _check_ocsp_cryptography
headers={'Content-Type': 'application/ocsp-request'})
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='ocsp.int-x3.letsencrypt.org', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb886861690>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for vivatakethat.com
http-01 challenge for www.vivatakethat.com
nginx: [warn] server name "/home/git" has suspicious symbols in /etc/nginx/nginx.conf:46
Waiting for verification...
Cleaning up challenges
nginx: [warn] server name "/home/git" has suspicious symbols in /etc/nginx/nginx.conf:42
nginx: [warn] server name "/home/git" has suspicious symbols in /etc/nginx/nginx.conf:42

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed with reload of nginx server; fullchain is
/etc/letsencrypt/live/vivatakethat.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/vivatakethat.com/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[root@VM_0_8_centos certbot]#

cerbot-auto将尝试从最新版本中获取自身的版本

文章目录
  1. 1. 将hexo根目录移动后提示少插件
  2. 2. hexo文章标签数目不对
  3. 3. 七牛imageView接口
    1. 3.1. 建议
  4. 4. npm问题