os.Args是个[]string 里面存着路径和全部参数 直接拼接一下就获取到完整路径了 func GetAllExecutePath()string{ allPath:="" for _,arg:=range os.Args{ allPath+=" "+arg } return allPath ...
分类:
其他好文 时间:
2021-04-24 13:25:34
阅读次数:
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、测试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
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
计算机组成 硬件+软件 硬件 CPU 内存 主板 IO设备 I input 输入设备 键盘、鼠标 O Output 输出设备 显示器、音响 软件 系统软件 windows linux os 应用软件 QQ 微信 英雄联盟 常用快捷键 Ctrl+c 复制 Ctrl+v 粘贴 Ctrl+x 剪切 Ctr ...
分类:
其他好文 时间:
2021-04-22 16:24:14
阅读次数:
0
这个东西折腾了一天,在rhel7上死活pip不能用,网上找了各种方法,基本都是垃圾文章,在无数次试验后,终于这篇文章成功装上了 rhel红帽时面对企业的,centos是基于redhat重新编译后的开源免费版,网上找不到适用rhel的很多东西和操作,以后还是用centos吧,两个差不多 centos7 ...
分类:
编程语言 时间:
2021-04-22 16:07:34
阅读次数:
0
一、安装版本本文以如下版本为例进行介绍。服务器:CentOS:6.8MySQL:8.0.18gcc:9.2.0cmake:3.15.2 服务器配置如下:CentOS 6.8,内存6G,磁盘60G。内存4G,磁盘60G的情况下,编译不成功,内存不足;在内存6G,磁盘20G的情况下,编译也不成功,磁盘空 ...
分类:
数据库 时间:
2021-04-22 16:02:18
阅读次数:
0
CDH添加HUE时数据库连接失败 查看cloudera-scm-server日志报错信息是:ImportError: libxslt.so.1: cannot open shared object file: No such file or directory 原因是centos缺少库文件,执行如下 ...
分类:
其他好文 时间:
2021-04-22 15:53:25
阅读次数:
0
PostgreSQL 9.6部署 参考:https://www.cnblogs.com/shhnwangjian/p/14680679.html https://docs.konghq.com/install/centos/ ...
分类:
其他好文 时间:
2021-04-21 12:50:51
阅读次数:
0
很多服务器都会多块盘或者做了Raid的多个虚拟磁盘,而安装xenserver后,他只会默认挂载第一快盘,也就是安装xenServer系统的那块。 那剩余的其他盘,怎么挂载上去做虚拟机的存储用呢?或者后期新增一块磁盘该如何操作呢? 1、用命令查看下自己的host-uuid [root@xenserve ...
分类:
其他好文 时间:
2021-04-21 12:44:08
阅读次数:
0