• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  linux

上一页 1 2 3 4 5 6

linux remember
 
linux 解析json
摘要:epel源 yum install jq [root@mhc NaHan-master]# curl 127.0.0.1:5000/v2/_catalog|jq . % Total % Received % Xferd Average Speed Time Time Time Current Dlo 阅读全文
posted @ 2017-08-02 13:27 会飞の鱼 阅读(1054) 评论(0) 推荐(0)
linux 正则表达式
摘要:redis-cli INFO|tr -d '\r'|egrep -v '^(#.*)?$'|sed -E 's/^([^:]*):(.*)$/redisInfo[\1]="\2"/' redis_version:4.0.0redis_git_sha1:00000000redis_git_dirty: 阅读全文
posted @ 2017-08-02 13:18 会飞の鱼 阅读(168) 评论(0) 推荐(0)
Centos7 vnc
摘要:这是一个关于怎样在你的 CentOS 7 上安装配置 VNC 服务的教程。当然这个教程也适合 RHEL 7 。在这个教程里,我们将学习什么是 VNC 以及怎样在 CentOS 7 上安装配置 VNC 服务器。 我们都知道,作为一个系统管理员,大多数时间是通过网络管理服务器的。在管理服务器的过程中很少 阅读全文
posted @ 2017-07-27 10:48 会飞の鱼 阅读(974) 评论(0) 推荐(0)
Centos7 創建快捷方式
摘要:usr/share/applications 創建文件 Gogland.desktop [Desktop Entry]Version=1Type=ApplicationName=GoglandGenericName=Text EditorComment=Go IDEExec=/root/packet 阅读全文
posted @ 2017-07-27 10:20 会飞の鱼 阅读(244) 评论(0) 推荐(0)
linux curl
摘要:执行curl命令时,会返回这样的% Total % Received % 统计信息 如何关闭这个统计信息的显示? 使用curl的-s 选项即可 curl -Lsfo /zookeeper.tar.gz http://mirror.bit.edu.cn/apache/zookeeper/zookeep 阅读全文
posted @ 2017-07-13 09:34 会飞の鱼 阅读(205) 评论(0) 推荐(0)
yum 操作
摘要:一、使用yum安装和卸载软件,有个前提是yum安装的软件包都是rpm格式的。 安装的命令是,yum install ~,yum会查询数据库,有无这一软件包,如果有,则检查其依赖冲突关系,如果没有依赖冲突,那么最好,下载安装;如果有,则会给出提示,询问是否要同时安装依赖,或删除冲突的包,你可以自己作出 阅读全文
posted @ 2017-06-28 17:34 会飞の鱼 阅读(224) 评论(0) 推荐(0)
centos7 安装mysql
摘要:wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm yum install mysql-community-client mysql-community-devel 阅读全文
posted @ 2017-06-27 10:59 会飞の鱼 阅读(141) 评论(0) 推荐(0)
consul
摘要:python-consul import consul c = consul.Consul(host="192.168.111.111") c.kv.put("key","value") a = c.kv.get("key") print a ('107', {u'LockIndex': 0, u' 阅读全文
posted @ 2017-05-29 14:35 会飞の鱼 阅读(414) 评论(0) 推荐(0)
处理命令行参数
摘要:funcs=($(declare -F -p | cut -d " " -f 3))until if [ ! -z "$1" ]; then # check if the first arg is a function in this file, or use a default if [[ " $ 阅读全文
posted @ 2017-05-18 10:02 会飞の鱼 阅读(218) 评论(0) 推荐(0)
linux 杂
摘要:set -e表示一旦脚本中有命令的返回值为非0,则脚本立即退出,后续命令不再执行; set -o pipefail表示在管道连接的命令序列中,只要有任何一个命令返回非0值,则整个管道返回非0值,即使最后一个命令返回0. tput rev # reverse 命令行背景反转tput bold # bo 阅读全文
posted @ 2017-05-10 18:05 会飞の鱼 阅读(131) 评论(0) 推荐(0)
 

上一页 1 2 3 4 5 6