随笔分类 -  Centos

摘要:#elasticsearch ####1)国内镜像源 https://mirrors.huaweicloud.com/elasticsearch/7.9.2/ https://blog.csdn.net/qq_38636133/article/details/105621876 https://ww 阅读全文
posted @ 2020-10-13 11:54 pigeast 阅读(109) 评论(0) 推荐(0)
摘要:Ansible ####1) 安装Ansible # ansible的安装依赖于epel,参照centos7 yum源的更换 yum install ansible -y ####2) 配置ansible cd /etc/ansible # ls 查看内部 ansible.cfg hosts rol 阅读全文
posted @ 2020-09-28 00:47 pigeast 阅读(174) 评论(0) 推荐(0)
摘要:Centos7 更换yum源 ###1) 1. 更换阿里云源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo 阅读全文
posted @ 2020-09-27 23:13 pigeast 阅读(891) 评论(0) 推荐(0)
摘要:ssh 无法远程登录 #####1)确认openssh的客户端是否安装 ps aux | grep ssh ssh 服务是否开启 若没有开启,apt install openssh-server 重启ssh:/etc/init.d/ssh restart #####2)修改配置文件容许root登录 阅读全文
posted @ 2020-09-24 00:31 pigeast 阅读(744) 评论(0) 推荐(0)
摘要:Centos7 安装redis 1) 下载redis源码包尝试安装 # 地址:http://download.redis.io/releases/ # 下载最新稳定版 (此链接目前最新的版本为6.0.8) wget http://download.redis.io/releases/redis-st 阅读全文
posted @ 2020-09-23 17:38 pigeast 阅读(184) 评论(0) 推荐(0)
摘要:#Centos7 安装Mariadb ###1) 安装前查看-了解总结 Centos7 原生安装了Mariadb, 并且可以看到在/etc/my.cnf文件 但是不知道如何启动,启动不了 索性直接删除了安装包,自己重新安装 ###2)yum安装Mariadb #1) 修改为国内的源 mv /etc/ 阅读全文
posted @ 2020-09-20 23:30 pigeast 阅读(721) 评论(0) 推荐(0)
摘要:##Centos7 修改主机名 ###1)Linux主机的命名规范 0-9, a-z, A-Z, 外加 ‘-’ 连字符 不容许 标点符号,空格,下划线,中文出现 开头不容许数字和连字符, 结尾不能是连字符 ###2)主机名的三种定义 静态 - static hostname # 内核主机名,系统启动 阅读全文
posted @ 2020-09-20 02:28 pigeast 阅读(1306) 评论(0) 推荐(0)
摘要:###nmtui 网卡编辑 图形界面 network manager terminal UI 之前我们编辑网卡操作的如下 vim /etc/sysconfig/network-scripts/ifcfg-enxx 现在通过这个图形界面也可以快速实现 如下截取的中英对照 哈哈 阅读全文
posted @ 2020-09-20 00:10 pigeast 阅读(391) 评论(0) 推荐(0)
摘要:Centos Server 版网卡配置 1. 编辑 /etc/sysconfig/network-scripts/ifcfg-ens33 # 修改的主要参数 ONBOOT=yes # 是否开机启动 # 说明网络的类型 BOOTPROTO=dhcp # 网卡获取IP地址的方式,static(静态指定i 阅读全文
posted @ 2020-09-19 02:21 pigeast 阅读(463) 评论(0) 推荐(0)