摘要: /root/wang/shell 存放练习的shell文件,快捷命令wsh(alias wsh='cd /root/wang/shell') /root/wang/OS_bak 存放系统备份文件 /root/wang wang的常用文件,快捷命令wang(alias wang='cd /root/w 阅读全文
posted @ 2019-02-14 14:41 水中鱼2018 阅读(333) 评论(0) 推荐(0)
摘要: linux备份还原 阅读全文
posted @ 2019-02-14 09:26 水中鱼2018 阅读(570) 评论(0) 推荐(0)
摘要: 不要在/tmp目录下保存文件,该目录会定期清理文件 /tmp默认保存10天 /var/tmp默认保存30天 配置文件:/usr/lib/tmpfiles.d/tmp.conf 默认配置文件:# This file is part of systemd.## systemd is free softw 阅读全文
posted @ 2019-02-13 16:27 水中鱼2018 阅读(1060) 评论(0) 推荐(0)
摘要: centos7查看可登陆用户 阅读全文
posted @ 2019-02-13 15:49 水中鱼2018 阅读(655) 评论(0) 推荐(0)
摘要: 一、查看所有表的行数select a.name as '表名',b.rows as '表数据行数'from sysobjects a inner join sysindexes bon a.id = b.idwhere a.type = 'u'and b.indid in (0,1)--and a. 阅读全文
posted @ 2019-02-13 09:43 水中鱼2018 阅读(1645) 评论(0) 推荐(0)
摘要: 系统:centos7 x86_64 一、配置本地yum源 1.1加载光驱 1.2挂载到系统 注:如果要长期使用最好把整个镜像文件拷贝到系统下 1.3配置文件 路径/etc/yum.repos.d/ 打包备份其它配置文件(测试本地源,暂时删除其它yum源,删除前备份) tar -zcvf repo.b 阅读全文
posted @ 2019-01-15 10:54 水中鱼2018 阅读(231) 评论(0) 推荐(0)