ICode9

精准搜索请尝试: 精确搜索
  • Linux中移动,复制,删除,打包排除某个目录或文件2019-05-29 11:00:58

    移动,复制,删除排除某个文件或目录 cp !(file1|dir2) /data/ 复制文件到/data/,排除file1和dir2 mv !(file1|dir2) /data/ 移动文件到/data/,排除file1和dir2 rm -rf !(file1|dir2) ./ 删除当前目录下的文件,排除file1和dir2 ------------------------------------------------------

  • 关闭安装包更新使用YUM在Linux中(RHEL / CentOS / Fedora)2019-05-24 22:49:50

    YUM (Yellowdog Updater Modified)  是一个开源的命令行工具,以及基于图形的软件包管理工具, 用于基于 RPM (RedHat Package Manager) 的 Linux 系统。它允许用户和系统管理员容易的安装,升级,卸载或者查找软件安装包在Linux系统中,它被开发以及发布通过 Seth Vidal 开源在GPL(Gener

  • Git 的两种忽略文件方式 gitignore 和 exclude2019-05-12 11:38:05

    Git 的两种忽略文件方式 gitignore 和 exclude .gitignore 不用说了,大家都知道。 有一个 exclude 可能接触比较少。 知道这个功能后发现,用在服务器上非常方便,因为服务器上可以会产生一些特别的文件,但是又不想添加到 gitignore 上,这时就可以加到 exclude 文件中忽略。

  • 如何将物理机虚拟机打包成docker2019-05-06 21:55:58

    打包tar --numeric-owner --exclude=/proc --exclude=/sys -cvf centos6-base.tar /复制到远端scp centos6-base.tar ip:/root导入镜像cat centos6-base.tar | docker import - centos6-base创建dockerdocker imagedocker run -i -t centos6-base cat /etc/redhat-releas

  • vscode前端配置2019-04-07 19:49:04

    1、设置字体大小 file -> preferences ->settings -> Font Size设置18或其他值即可 2、跳转返回 按键组合 含义 ctrl + 鼠标左键 跳转到函数定义 alt + 键盘方向左键 跳转返回 3、自动换行:File->Preferences->Settings->在搜索框中输入 word wrap 选择 on 4、代码

  • Ops-tar命令实用总结2019-04-02 20:55:06

    温故而知新。 打包和过滤: tar Jcvf a.tar.xz /data/a /data/b --exclude=/data/a/lia_recording.sql --exclude=/data/a/test --exclude=/data/a/uploads/* --exclude="/data/a/\.git*" 常见示例: tar -cvf test.tgz test/ tar -cvf test.tgz test/ --exclude *.jpg tar -cv

  • Error: Program type already present: com.google.gson.FieldAttributes 的解决方法2019-03-25 21:54:18

      在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.su

  • Error: Program type already present: okhttp3.Authenticator$12019-03-25 21:47:34

      在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.su

  • Program type already present:okio.AsyncTimeout$Watchdog Message{kind=ERROR, text=Program type :okio2019-03-25 21:38:04

      在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.su

  • vuecli3.x 中使用px2rem 忽略指定文件 不影响ui组件样式的解决方案2019-03-18 13:48:23

    最近在用vuecli3.x搭建项目    安装了postcss-px2rem但是影响了ui组件的样式,网上的方法都试过,总结下 1. postcss-px2rem不能忽略指定文件   需要安装postcss-px2rem-exclude(安装前需要先卸载postcss-px2rem)     npm uninstall postcss-px2rem     npm i postcss-px2re

  • 转发:CentOS下tar压缩排除某个文件夹或文件2019-03-15 09:51:32

      一般直接用tar命令打包很简单,直接使用 tar -zcvf test.tar.gz test 即可。 在很多时候,我们要对某一个目录打包,而这个目录下有几十个子目录和子文件,我们需要在打包的时候排除其中1、2个目录或文件。 这时候我们在用tar命令打包的时候,增加参数 --exclude 就能达到目的。   例如:

  • rsync的使用总结2019-03-02 22:56:02

    rsync远程同步:rsync是以文件名来区分的文件是否已经同步,文件同步之后进程会自动中断1.需要两台主机实现免密登录2.rsync的同步参数 a 归档传输。保留文件的原始属性 z 传输时压缩文件,可能会占用更多的资源 -delete   需要指定同步目录时,才有用   /目录    --delete参数要放在

  • 路径分隔符不一致,导致windows下不能开发2019-03-02 11:42:25

    最近想要基于YAPI扩展开发一个自己的API管理平台,但是发现在windows下直接跑会报错,在Mac跑就没事 报的错是: Uncaught TypeError: $export is not a function google了一下,遇到这种问题的解决方法,就是webpack loader上都加上: exclude: /node_modules/ 找了半天,终于发现了webpack

  • linux上 yum update 不更新内核2019-02-25 11:55:14

    使用yum update更新文件系统时不更新内核的方法 方法一、修改yum的配置文件 使用yum update更新时不升级内核,先进行备份以防止修改出错。 cp /etc/yum.conf /etc/yum.confbak vim /etc/yum.conf  在[main]的最后添加 exclude=k

  • Spring boot项目创建完成无法启动问题2019-02-20 16:38:39

    报错:解决方法:在XXXApplication注解处配置@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)原文链接:https://blog.csdn.net/coyotess/article/details/80637837

  • rsync排除所有目录的隐藏文件2019-02-13 14:56:19

    由于我输入*就变斜体,没办法正确显示出来,我只好用文字了,请自行转换成星号。首先写好exclude.list文件,内容如下.[a-z0-9]星号星号/.[a-z0-9]星号保存退出然后执行rsync的时候使用这个list文件就可以排除掉隐藏文件了,比如rsync -avP --exclude-from=exclude.list ~/tmp/test/ ~/tmp

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有