1、使用passwd命令锁定与解锁账号 [root@rhel7 ~]# passwd -l testuser -l 锁定 Locking password for user testuser. passwd: Success [root@rhel7 ~]# passwd -S testuser 查看 ...
分类:
系统相关 时间:
2020-04-01 13:18:21
阅读次数:
88
1、报错现象如下:[root@cdh02 ~]# yum install httpd已加载插件:langpacks, product-id, search-disabled-repos, subscription- : managerThis system is not registered wit ...
分类:
其他好文 时间:
2020-04-01 12:57:10
阅读次数:
202
说明: 192.168.1.5:master、etcd 192.168.1.6:node1 192.168.1.7:node2 1.5配置: 配置yum源: 每个节点都准备好这个k8s安装包,不然网上下载太慢。 [root@master yum.repos.d]# mkdir yum && mv * ...
分类:
Web程序 时间:
2020-03-31 19:24:00
阅读次数:
92
最近无意间发现Nginx官方提供了Yum源。因此写个文章记录下。 1、添加源 默认情况Centos7中无Nginx的源,最近发现Nginx官网提供了Centos的源地址。因此可以如下执行命令添加源: sudo rpm -Uvh http://nginx.org/packages/centos/7/n ...
分类:
其他好文 时间:
2020-03-31 10:39:15
阅读次数:
57
shell 常用设置命令 # 关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld.service # 替换阿里 yum 源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.r ...
分类:
其他好文 时间:
2020-03-30 09:27:19
阅读次数:
74
1、自建yum仓库,分别为网络源和本地源;配置本地源####建立本地源目录[root@qingcheng-dblgp]#mkdir/mnt/cdrom[root@qingcheng-dblgp]#mkdir/yum挂载Centos光盘[root@qingcheng-dblgp]#mount/dev/cdrom/mnt/cdrom备份repo[root@qingcheng-dblgp]#cd/etc
分类:
其他好文 时间:
2020-03-30 00:07:39
阅读次数:
80
1、添加Nginx到YUM源Sudorpm-Uvhhttp://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2、安装Nginxsudoyuminstall-ynginx3、启动Nginxsudosystemctlstartnginx.service如果一切进展顺利的话,现在你可
分类:
编程语言 时间:
2020-03-29 23:55:56
阅读次数:
244
yum或apt基本源设置指南 关于: 管理Linux服务器的运维或开发人员经常需要安装软件,最常用方式应该是通过Linux系统提供的包管理工具来在线安装,比如centos的yum,ubuntu或debian的apt-get。当然这些工具使用之前需要配置好yum源或apt源。 配置文件: centos ...
分类:
其他好文 时间:
2020-03-28 13:45:48
阅读次数:
284
1.更新yum源 yum -y update 2.尝试安装sl yum install sl 执行yum命令时会去centos镜像查找sl包,但是镜像中没有sl包,所以要安装额外包,需要安装epel-release-6-8.noarch.rpm 3.下载epel-release-6-8.noarch ...
分类:
其他好文 时间:
2020-03-28 13:05:43
阅读次数:
311