龙昱帅帅-@-一切全凭构思

02 2020 档案

摘要:chattr +a file1 只允许以追加方式读写文件 chattr +c file1 允许这个文件能被内核自动压缩/解压 chattr +d file1 在进行文件系统备份时,dump程序将忽略这个文件 chattr +i file1 设置成不可变的文件,不能被删除、修改、重命名或者链接 cha 阅读全文
posted @ 2020-02-26 13:00 龙昱
摘要:今天跑docker的时候发现映射端口之后的端口竟然是tcp6,这是因为ipv6没有关闭而docker默认使用tcp6的原因,所以我要把tcp6关闭,关闭方法如下: 方法 1 编辑文件/etc/sysctl.conf, vi /etc/sysctl.conf 添加下面的行: net.ipv6.conf 阅读全文
posted @ 2020-02-26 09:37 龙昱
摘要:[root@centos7 ~]# yum install -y bash-completion 阅读全文
posted @ 2020-02-24 14:41 龙昱
摘要:1,查看当前内核 [root@centos7 ~]# uname -r 2、查看启动配置里有哪些内核 [root@centos7 ~]# cat /boot/grub2/grub.cfg | grep menuentry if [ x"${feature_menuentry_id}" = xy ]; 阅读全文
posted @ 2020-02-24 14:38 龙昱
摘要:冒险位:setuid(在u的x位置上使用一个s)只能对文件进行设置 Suid是让执行者临时拥有属主的权限,仅对二进制文件(命令)生效。 对文件作用: 默认情况下,用户执行一个指令,会以该用户的身份来运行进程。当一个文件设置了SUID后,所有用户执行这个文件时都是以这个用户的所有者的权限来执行。即可以 阅读全文
posted @ 2020-02-16 18:22 龙昱
摘要:VMware克隆 CentOS6.10后的网络配置 ip地址出错 ,,,,,删除 /etc/udev/rules.d/70-persistent-net.rules 文件,,,重启好了 阅读全文
posted @ 2020-02-13 20:47 龙昱
摘要:lrzsz首先,我们看下rzsz工具使用的ZModem传输协议: ZModem is a full-duplex file transfer protocol that supports fast data transfer rates and effective error detection. 阅读全文
posted @ 2020-02-13 20:39 龙昱
摘要:如果在终端执行 make menuconfig ,显示错误:Your display is too small to run Menuconfig!It must be at least 19 lines by 80 columns.make[1]: *** [menuconfig] Error 1 阅读全文
posted @ 2020-02-13 14:11 龙昱
摘要:错误:依赖检测失败:perl(Data::Dumper) xxxxxxxxxxxxxxxxxxxxxxxxxxxxx [root@centos7 ~]# rpm -ivh webmin-1.941-1.noarch.rpm warning: webmin-1.941-1.noarch.rpm: He 阅读全文
posted @ 2020-02-13 07:45 龙昱
摘要:1、安装Mate桌面 yum install epel-release (添加源,默认源没有Mate桌面) yum groups install "MATE" 2、安装X yum groups install "X Window System" 3、安装字库 yum groups install " 阅读全文
posted @ 2020-02-10 21:02 龙昱
摘要:apt-get安装时出现 依赖 直接安装不成依赖, 使用该命令修复依赖 apt-get -f install 阅读全文
posted @ 2020-02-07 15:53 龙昱