
OS
Linux Centos
Buzz.Lightyear
Nobody got bug-free inside its DNA except Kendrick Lamar!
展开
-
chmod: changing permissions of ‘/etc/passwd‘: Read-only file system
给passwd文件加权限,修改/etc/passwd目录下所有的文件夹属性为可写可读可执行,执行以下命令:chomd 777 /etc/passwd的时候提示错误:chmod: changing permissions of ‘/etc/passwd': Read-only file system解决方法:产生这个问题的原因是文件系统此时处于只读模式下,/etc/passwd和/etc/shadow不能被修改,运行下面的命令就可以解决这个问题#mount -rw -o remoun.原创 2021-02-05 10:01:00 · 2130 阅读 · 0 评论 -
RAID初始化过程
RAID系统是用来对存储数据进行数据保护的有效手段。在RAID创建过程中往往会存在一个时间极长的系统初始化过程,为什么RAID初始化过程中会存在这样的一个操作呢?这个操作对SSD会导致什么方面的影响呢?传统RAID的基本组织结构如下图所示:所有加入RAID Group的盘会按照LBA地址切分成一系列的切片,这些切片被称之为Stripe Unit,不同盘中相同LBA地址所对应的Stripe Unit会组织成一个条带(Stripe)。在一个条带中对所有数据进行编码,例如RAID6生.原创 2020-11-12 10:11:48 · 4078 阅读 · 0 评论 -
cannot create temp file for here-document: No space left on device
Error:cannot create temp file for here-document: No space left on deviceSolution:du -sh /* 从根目录查看哪个目录最大,一步一步的查找大文件du -h --max-depth=1 查找最大的文件原创 2020-09-28 17:24:41 · 184 阅读 · 0 评论 -
kickstart ks.cfg auto part自动分区
#version=DEVEL# System authorization informationauth --enableshadow --passalgo=sha512# Install OS instead of upgradeinstall# Use network installationurl --url="http://10.10.47.150:8060//centos/7"# License agreementeula --agreed# Use graphical ins.原创 2020-08-13 11:53:52 · 2223 阅读 · 1 评论 -
Linux网卡bond的七种模式详解
像Samba、Nfs这种共享文件系统,网络的吞吐量非常大,就造成网卡的压力很大,网卡bond是通过把多个物理网卡绑定为一个逻辑网卡,实现本地网卡的冗余,带宽扩容和负载均衡,具体的功能取决于采用的哪种模式。一、bond的七种模式介绍:1、mode=0(balance-rr)(平衡抡循环策略)链路负载均衡,增加带宽,支持容错,一条链路故障会自动切换正常链路。交换机需要配置聚合口,思科叫port channel。特点:传输数据包顺序是依次传输(即:第1个包走eth0,下一个包就走eth1….一直循环下...原创 2020-07-24 15:24:08 · 4565 阅读 · 0 评论 -
Python 线程的生命周期
CPU 在轮换执行线程过程中,线程都经历了什么呢?线程从创建到消亡的整个过程,可能会历经 5 种状态,分别是新建、就绪、运行、阻塞和死亡,如图 1 所示。图 1 线程状态转换图线程的新建和就绪状态无论是通过 Thread 类直接实例化对象创建线程,还是通过继承自 Thread 类的子类实例化创建线程,新创建的线程在调用 start() 方法之前,不会得到执行,此阶段的线程就处于新建状态。从图 1 可以看出,只有当线程刚刚创建,且未调用 start() 方法时,该线程才处于新建状态,而一旦原创 2020-07-17 17:46:50 · 599 阅读 · 0 评论 -
db5 error(11) from dbenv->open: Resource temporarily unavailable
Error:error: db5 error(11) from dbenv->open: Resource temporarily unavailableerror: cannot open Packages index using db5 - Resource temporarily unavailable (11)error: cannot open Packages data...原创 2020-01-21 11:22:44 · 1418 阅读 · 0 评论 -
Another app is currently holding the yum lock; waiting for it to exit...
# 强制关掉yum进程rm -f /var/run/yum.pid原创 2020-01-06 10:42:03 · 95 阅读 · 0 评论 -
-bash: npm: command not found
卸载node 重装sudo yum remove nodejssudo yum install -y nodejs # 默认安装最新的8.xOptional: install build toolsTo compile and install native addons from npm you may also need to install build tools:...原创 2019-12-30 14:42:03 · 12842 阅读 · 0 评论 -
Linux tar.gz、tar、bz2、zip 等解压缩、压缩命令详解
Linux 常用的压缩与解压缩命令有:tar、gzip、gunzip、bzip2、bunzip2、compress 、uncompress、 zip、 unzip、rar、unrar 等。tar最常用的打包命令是 tar,使用 tar 程序打出来的包我们常称为 tar 包,tar 包文件的命令通常都是以 .tar 结尾的。生成 tar 包后,就可以用其它的程序来进行压缩了,所以首先就...原创 2019-12-04 10:28:16 · 100 阅读 · 0 评论 -
CentOS cannot find a valid baseurl for repo base/7/x86_64
Reason:CentOS7 无法连接外网Trouble shooting:1.网卡文件cd /etc/sysconfig/network-scriptvim ifcfg-eth0首先在网卡文件中,确保ONBOOT=yes2. resolv.conf DNS 新增nameservercd /etcvim resolv.conf3.ping ww...原创 2019-12-03 11:49:05 · 184 阅读 · 0 评论 -
yum [Errno 256] No more mirrors to try
yumcleanallyummakecacheyumupdate原创 2019-12-03 11:29:15 · 153 阅读 · 0 评论 -
Windows10 ping 不通 虚机CentOS7 的IP 问题解决
Reason:VMnet8 里面的IP地址与CentOS7中的GATEWAY地址不相同Solution:双击 VMnet8双击属性-->双击Internet协议版本4进入CentOS下的/etc/sysconfig/network-scripts/目录下vim打开ifcfg-eth32(文件名称可能不同ifcfg-xxx)修改ONBOOT=yes...原创 2019-11-28 13:42:56 · 2085 阅读 · 2 评论 -
Permission denied: make_sock: could not bind to address
临时关闭 无需关闭虚机:[root@localhost ~]#getenforceEnforcing[root@localhost ~]#setenforce 0[root@localhost ~]#getenforcePermissive永久关闭 需要重启虚机:[root@localhost ~]# vim /etc/sysconfig/selinux/...原创 2019-11-27 10:58:09 · 181 阅读 · 0 评论 -
yum安装报错:[Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
[root@localhost /]# yum install memcachedhttp://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"Trying othe...原创 2019-11-19 17:16:24 · 16832 阅读 · 1 评论 -
Existing lock /var/run/yum.pid: another copy is running as pid 102792
[root@localhost /]# yum install memcachedExisting lock /var/run/yum.pid: another copy is running as pid 102792.Another app is currently holding the yum lock; waiting for it to exit... The other a...原创 2019-11-19 14:58:41 · 297 阅读 · 0 评论 -
Linux中文件编辑保存报错 E212: Can't open file for writing
1.权限不够可能是权限不够,需要切换到root用户,获取root权限,再对文件进行编辑保存操作。2.目录不存在比如 vim /etc/openstack-dashboard/local_settings 编辑完文件 :wq 报错:E212: Can't open file for writing问题可能是这个目录就不存在,在vim编辑文件前 cd 一层一层去看看 pwd打印路径,...原创 2019-11-18 10:59:31 · 2431 阅读 · 0 评论 -
Centos 7 OpenStack Horizon 安装教程
1.安装镜像源yum install -y epel-releaseyum list all|grep openstackyum install centos-release-openstack-train.noarch -yyum install openstack-dashboard2.vim /etc/openstack-dashboard/local_settings...原创 2019-11-22 14:40:34 · 505 阅读 · 0 评论 -
No package openstack-dashboard available. Error: Nothing to do
Problem :在centos 7中安装yum install -y openstack-dashboard时发生错误[root@localhost /]# yum install openstack-dashboardNo package openstack-dashboard available.Error: Nothing to doSolution:EPEL (...原创 2019-11-15 16:59:28 · 1605 阅读 · 2 评论 -
如何更新centos7 yum 源
Solution:备份本地yum源:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak;下载阿里云yum源curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.re...原创 2019-11-15 16:24:22 · 196 阅读 · 0 评论