Linux
Linux相关知识
呼卓宇
人生就得不停的学习
展开
-
shell脚本相关知识
1. 初识shell脚本#!/bin/sh #指定脚本解释器,这里是用/bin/sh做解释器的cd ~ #切换到当前用户的home目录mkdir shell_tut #创建一个目录shell_tutcd shell_tut #切换到shell_tut目录...原创 2019-12-19 17:36:27 · 170 阅读 · 0 评论 -
#通过shell脚本进行数据库索引的查询
通过shell脚本进行数据库索引的查询#!/bin/shexport PGPASSWORD=appuser_pt#读取索引列表文件while read -r line#从pg_index_list列表中取出表名,索引个数dotablename=` echo $line | cut -d "|" -f 1`indexnum=`echo $line | cut -d "|" -f ...原创 2019-12-24 18:35:31 · 585 阅读 · 0 评论 -
centos6已经停止更新,最新换yum镜像方法
centos 6 12月后最新一键换yum方法rm -rf /etc/yum.repos.d/CentOS-Base.repowget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.reporm -rf /etc/yum.repos.d/*pel.repo /etc/yum.repos.d/epel-tes转载 2021-01-14 18:06:58 · 876 阅读 · 0 评论 -
阿里云CentOS镜像下载
http://mirrors.aliyun.com/centos/原创 2021-01-15 16:21:30 · 558 阅读 · 1 评论