Linux下通过n模块来安装、升级、管理node版本

一、 查看当前node的版本号 node -v 显示版本v6.9.0 二、清理npm的cache npm cache clean -f 三、 版本管理工具 名称: n npm install -g n 四、更新到最新版 n latest n 常用的命令有: n 会列出所有安装的版本供你切换 n latest 安装最新版本 n stable 安装最新稳定版 n lts 安装最新长期支持版本 n rm [版本号] 删除某一版本 n -h 帮助命令 n [版本号] 安装指定版本node 五、 验证是否成功 node -v 然而并没有成功,还是显示的是老的v6.9.0版本 出现这个问题的原因是 n 模块和系统node的安装路径不同 解决: 1、 查看系统node的安装路径 … Continue reading “Linux下通过n模块来安装、升级、管理node版本”

gin nginx

######################## default ############################ server { listen 80; server_name _; access_log /data/wwwlogs/access_nginx.log combined; root /data/wwwroot/default; index index.html index.htm index.php; #error_page 404 /404.html; #error_page 502 /502.html; location / { proxy_pass http://127.0.0.1:8888; proxy_set_header Accept-Encoding ”; proxy_set_header Host $http_host; proxy_set_header Referer $http_referer; proxy_set_header Cookie $http_cookie; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } ########################## vhost #############################

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

Traceback (most recent call last): File “/root/doms/dnsall2.py”, line 24, in s.connect((domain, 443)) File “/usr/lib/python3.9/ssl.py”, line 1342, in connect self._real_connect(addr, False) File “/usr/lib/python3.9/ssl.py”, line 1333, in _real_connect self.do_handshake() File “/usr/lib/python3.9/ssl.py”, line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123) ““““““““““““““` 指定cafile地址 ctx = ssl.create_default_context(cafile = “/etc/ssl/certs/ca-certificates.crt”)

tailwindcss

curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64 chmod +x tailwindcss-macos-arm64 mv tailwindcss-macos-arm64 tailwindcss # Create a tailwind.config.js file ./tailwindcss init # Start a watcher ./tailwindcss -i input.css -o output.css –watch # Compile and minify your CSS for production ./tailwindcss -i input.css -o output.css –minify module.exports = { // … plugins: [ require(‘@tailwindcss/forms’), require(‘@tailwindcss/typography’), ] } https://www.tailwindcss.cn/blog/standalone-cli