热门 axios拦截添加功能

时间:2019-3-14   作者:lininn   分类:   热度:1715°    
时间:2019-3-14   分类:    热度:1715  
import axios from 'axios' import { Message, MessageBox } from 'element-ui' import store from '../store' import { getToken } from '@/utils/auth' // 创建axios实例 const service = axios.create({ baseURL: process.env.BASE_API, // api的base_url timeout: 5000 ...

阅读全文>>

热门 centos7设置时区

时间:2019-3-14   作者:lininn   分类:   热度:2225°    
时间:2019-3-14   分类:    热度:2225  
# timedatectl list-timezones # 列出所有时区 # timedatectl set-local-rtc 1 # 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间 # timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海 其实不考虑各个发行版的差异化, 从更底层出发的话, 修改时间时区比想象中要简单: # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

阅读全文>>

热门 nodemailer node发送自定义邮箱邮件

时间:2019-3-12   作者:lininn   分类:   热度:2241°    
时间:2019-3-12   分类:    热度:2241  
const nodemailer = require("nodemailer"); //发送邮件的node插件 const smtpTransport = require('nodemailer-smtp-transport'); function sendMail(HtmlData) { const template = ejs.compile( fs.readFileSync(path.resolve(__dirname, "email.ejs"), "utf8") ...

阅读全文>>

热门 nginx知识 nginx 重写(伪静态)

时间:2019-3-12   作者:lininn   分类:   热度:2038°    
时间:2019-3-12   分类:    热度:2038  
https://juejin.im/post/5c85a64d6fb9a04a0e2e038c?utm_source=gold_browser_extension proxy_pass 后跟的服务器URL值是否以 / 结尾的区别: 若 Nginx 收到请求为 https://ngxin_server_name/hello/world 而 Nginx 代理的路径为 /hello/(即在 location /hello/ 内设置代理) 则不以 / 结尾的被代理服务器收到的请求路径是 /hello/world 以 / 结尾的被代理服务器收到的请求路径是 /world 如果是为了在同一个域名下...

阅读全文>>

热门 centos7更换源

时间:2019-3-8   作者:lininn   分类:   热度:2573°    
时间:2019-3-8   分类:    热度:2573  
yum 的使用是很方便的,可能出现的问题就是源的下载速度不理想,所以需要更换。它的配置文件在 /etc/yum.conf,源列表在 /etc/yum.repos.d。 备份mv base.repo baserepo.repo.backup wget -o base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或http://mirrors.aliyun.com/repo/Centos-6.repo 最后 接下来是生成缓存,yum ...

阅读全文>>

热门 babel 转es5

时间:2019-3-7   作者:lininn   分类:   热度:2821°    
时间:2019-3-7   分类:    热度:2821  
"@babel/core": "^7.0.0", "@babel/plugin-transform-runtime": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/runtime": "^7.3.4", "babel-loader": "^8.0.5" .babelrc: { "presets":[ ["@babel/preset-env",{ "targets":{ "browsers":[">1%","last 2...

阅读全文>>

热门 css鼠标跟随

时间:2019-3-6   作者:lininn   分类:   热度:2165°    
时间:2019-3-6   分类:    热度:2165  
https://codepen.io/Chokcoco/pen/XgvjQM https://codepen.io/Chokcoco/pen/OqXqVz https://codepen.io/Chokcoco/pen/zyyYqN

阅读全文>>

热门 Linux Supervisor 守护进程基本配置

时间:2019-3-5   作者:lininn   分类:   热度:2126°    
时间:2019-3-5   分类:    热度:2126  
方法一、使用yum命令安装(推荐) $ sudo su - #切换为root用户 # yum install epel-release # yum install -y supervisor # systemctl enable supervisord # 开机自启动 # systemctl start supervisord # 启动supervisord服务 # systemctl status supervisord # 查看supervisord服务状态 # ps -ef|grep supervisord # 查看是否存在supervisord进程 模板命令: echo_su...

阅读全文>>

热门 nginx支持http2

时间:2019-3-4   作者:lininn   分类:   热度:1888°    
时间:2019-3-4   分类:    热度:1888  
1.下载安装需要用到的软件包,需要用的软件包如下     nginx-1.11.5.tar.gz     openssl-1.0.2j.tar.gz     pcre-8.38.zip     zlib-1.2.8.tar.gz     nginx-1.9.5以上才支持http2,所用nginx的版本必须是1.9.5以上的 2.解压缩所有的软件包后,进入nginx-1.11.5目录编译nginx          ...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn