说明: a.此种方式安装可以利用国内镜像,下载速度快。 b.适合最新版安装 1.获取yum安装地址 [root@bigdata-senior02 mysql]# wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql80-community ...
分类:
数据库 时间:
2021-04-26 13:12:57
阅读次数:
0
Loaded plugins: fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error w ...
分类:
Web程序 时间:
2021-04-24 13:53:03
阅读次数:
0
https://www.cnblogs.com/cnsdhzzl/p/12586711.html 参考地址 安装有趣的命令sl(跑火车) 1.更新yum源 yum -y update 2.尝试安装sl yum install sl 执行yum命令时会去centos镜像查找sl包,但是镜像中没有sl包 ...
分类:
其他好文 时间:
2021-04-24 13:20:13
阅读次数:
0
1、测试数据 [root@centos7 test3]# cat b.txt e t s e s g m x w d g i d t e g x g e w 2、打印匹配w的行 [root@centos7 test3]# cat b.txt e t s e s g m x w d g i d t e ...
分类:
系统相关 时间:
2021-04-24 13:18:10
阅读次数:
0
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
在Linux中用scp进行远程复制文件时需要输入密码,这对于复制大文件使用nohup后台执行的时候是非常糟糕的,但我们可以生成一对密钥,把公钥放置在远程主机上,这样再使用scp时就无须输入密码,具体做法如下: 需求场景:现有主机A、主机B,要从主机A复制文件到主机B。 1.在主机A上使用命令ssh- ...
分类:
系统相关 时间:
2021-04-23 11:56:55
阅读次数:
0
1、确认系统版本 cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 2、yum 安装 gcc 相关 yum -y install gcc gcc-c++ 3、卸载旧的版本 yum -y remove docker docker- ...
分类:
其他好文 时间:
2021-04-23 11:54:07
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
这个东西折腾了一天,在rhel7上死活pip不能用,网上找了各种方法,基本都是垃圾文章,在无数次试验后,终于这篇文章成功装上了 rhel红帽时面对企业的,centos是基于redhat重新编译后的开源免费版,网上找不到适用rhel的很多东西和操作,以后还是用centos吧,两个差不多 centos7 ...
分类:
编程语言 时间:
2021-04-22 16:07:34
阅读次数:
0