node遍历文件夹并读取文件内容 var fs = require('fs'); var path = require('path'); //解析需要遍历的文件夹,我这以E盘根目录为例 var filePath = path.resolve('./'); //调用文件遍历方法 fileDisplay(filePath); /** * 文...
自建CDN加速-Nginx反向绑定 1.安装nginx 先在CDN节点上修改Hosts,目的就是告知CDN节点从那里去获取网站数据,也就是回源地址,修改如下: vi /etc/hosts 192.168.1.100 www.wzfou.com 然后在CDN节点创建nginx配置文件 wzfou.com.conf #创建缓存目录 mkdir...
ubuntu新建文件ntfs Operation not permitted only install ntfs-3g and reboot 只需要apt install ntfs-3g,并重启就可以了
nginx+frp 2.1、nginx设置 server { listen 80; server_name www.yourdomain.com; location / { # 这里的端口需要跟frps的vhost_http_port的设置保持一致 proxy_pass http://127.0.0.1:8088/; pr...
nginx 上传大文件出现 504 gateway time-out 在http{}片段下添加如下配置:单位秒 client_max_body_size 50m; //文件大小限制,默认1m proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 600...
设置antv f2 y轴为%数 chart.scale('percent', { min: 0, max: 100, formatter: value => { return value + '%'; } });
在线更改主题步骤 看到ant design pro 上的 主题颜色更换 感觉挺酷的 就研究了一下 , 因为最近想用vue 重写一版博客 所有就 用的 vue + ant design 做的这个demo 点击预览 源码地址 1 创建项目 用vue cli 创建项目之后 需要先安装以下两个 插件 第一个是 ui 都知道 第二...
centos安装node 方法一:源码包安装 官网下载 centos下载最新版10.9 https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz mkdir /opt/software/ && cd /opt/software/ tar -xvf node-v10...
centos7 Firewalld端口转发 本文使用的操作系统是centos7,防火墙为默认的firewalld。 决定你端口转发是否能成功的最重要一点是你得打开防火墙伪装IP的功能,这就是SNAT。 firewall-cmd --query-masquerade # 检查是否允许伪装IP firewall-cmd --add-masquerad...