How to pull docker image behind proxy
My host OS is CENTOS7, and running behind proxy. The output of executing docker run hello-world is like this:# docker run hello-worldUnable to find image 'hello-world:latest' locallyTrying to pull repository registry.access.redhat.com/hello-world ... failedTrying to pull repository docker.io/library/hello-world ... failedError while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate is valid for FG3K6...
centos7 firewalld
1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewalld开机启用 : systemctl enable firewalld2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。启动一个服务:systemctl start firewalld.service关闭一个服务:systemctl stop firewalld.service重启一个服务:systemctl restart firewalld.service显示一个服务的状态:systemctl s...
centos7下安装mongodb
下载压缩包我这里选择的是先在官网下载好,然后复制到服务器下我下载的是mongodb-linux-x86_64-rhel70-4.0.10.tgz解压cd /usrtar zxvf mongodb-linux-x86_64-rhel70-4.0.10.tgz1mv mongodb-linux-x86_64-rhel70-4.0.10 mongodb设置环境变量:vi /etc/profile末尾添加:export PATH=/usr/mongodb/bin:$PATH生效:source /etc/profile3)回到mongodb目录下创建数据库目录cd /usr/mongodb/4)在该目录下新建配置文件touch mongodb.conf5)创建数据库目录mkdir data6)创建日志目录...
vue使用element-ui中的Message 、MessageBox 、Notification
import Vue from 'vue';import ElementUI from 'element-ui';// 添加响应拦截器axios.interceptors.response.use(function (response) {// 对响应数据做点什么// console.log('对响应数据做点什么')return response;}, function (error) {// 对响应错误做点什么console.log(ElementUI)//Message 消息提示ElementUI.Message({message: '恭喜你,这是一条成功消息',type: 'success'});//Notification 通知ElementUI.Notification({title: '警告',message: '这是一条警告的提示消息',type: 'warni...
Asp.Net Core Filter 深入浅出的那些事-AOP
一、前言在分享ASP.NET Core Filter 使用之前,先来谈谈AOP,什么是AOP 呢?AOP全称Aspect Oriented Programming意为面向切面编程,也叫做面向方法编程,是通过预编译方式和运行期动态代理的方式实现不修改源代码的情况下给程序动态统一添加功能的技术。AOP技术利用一种称为“横切”的技术,剖解开封装对象的内部,将影响多个类的公共行为封装到一个可重用的模块中,并将其命名为Aspect切面。所谓的切面,简单来说就是与业务无关,却为业务模块所共同调用的逻辑,将其封装起来便于减少系统的重复代码,降低模块的...
vue import .scss报错
新版本的vue-cli已经帮我们把sass-loader配置好了,放在了util.js里面。原来我们需要在webpack.base.config.js中去配置以下这段代码:{ <span class="hljs-attr">test</span>: <span class="hljs-regexp">/\.scss$/</span>, <span class="hljs-attr">use</span>: [ { <span class="hljs-attr">loader</span>: <span class="hljs-string">'style-loader'&l...
vue中引入.svg图标,使用iconfont图标库(SvgIcon组件使用)
阿里巴巴的iconfont是一个很好的图标库,海量的素材可以快速满足开发人员日常对图标的诉求,我们采用symbol引用,官方介绍创建SvgIcon组件<template><svg :class="svgClass" aria-hidden="true"><use :xlink:href="iconName"></use></svg></template><script>export default {name: 'svg-icon',props: {iconClass: {type: String,required: true},className: {type: String}},computed: {iconName() {return `#icon-${this.iconClass}`},svgC...
vue 安装sass,运行后报错loaderContext.getResolve is not a function
今天自己搭建vue-cli框架,安装了element-ui,运行没有任何问题,修改了下样式,为了避免修改ele里面组件的样式出现样式污染,想着装个sass写嵌套的,这样既方便又能很好的解决问题,那么动起来:1.安装需要的依赖: npm install node<span class="token operator">-</span>sass <span class="token operator">--</span>save<span class="token operator">-</span>dev <span class="token comment">//安...
vue中无法加载scss
今天重装了vue-cli脚手架这次我安装了node-sass+sass-loader之后还是不行,进入webpack.base.config.js发现没有配置scss。所以增加如下:<span class="token punctuation">{</span> <span class="token property">test</span><span class="token punctuation">:</span> /\.sass$/<span class="token punctuation">,</span> <span class="token property">loaders</span><span ...