摘要: set -x 脚本部分内容 set +x 阅读全文
posted @ 2018-10-19 17:56 超我 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 变量="变量" readonly 变量名="变量" 表示设置该变量为只读变量 ,这个变量不能别改变 echo $变量名 set 显示本地所有的变量 unset 变量名 表示清除变量 readonly 显示当前shell下有哪些只读变量 阅读全文
posted @ 2018-10-19 17:31 超我 阅读(132) 评论(0) 推荐(0) 编辑
摘要: :<<BLOCK 中间为要注释的内容 BLOCK 阅读全文
posted @ 2018-10-19 17:25 超我 阅读(240) 评论(0) 推荐(0) 编辑
摘要: @ 如果有很多图片(比如web服务器的页面上有多个小图片),通常是没有必要记录文件的访问时间的,这样就可以减少写磁盘的I/O,这个要如何配置 @ 首先,修改文件系统的配置文件/etc/fstab ,然后,在包含大量文件的分区中使用noatime和nodiratime这俩个命令 /dev/sda5 / 阅读全文
posted @ 2018-10-19 14:38 超我 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 12] Timeout on https://yum.dockerproject.org/repo/main/centos/7/repodata/ 阅读全文
posted @ 2018-10-19 14:17 超我 阅读(1687) 评论(0) 推荐(0) 编辑
摘要: yum install -y ntp crontab -e */5 * * * * /usr/bin/ntpdate ntp.api.bz ### ntp.api.bz 是一组NTP集群服务器,之前是6台服务器,位于上海电信;现在是3台服务器,分散于上海和浙江电信,可以用dig命令查看 ## dig 阅读全文
posted @ 2018-10-19 13:34 超我 阅读(264) 评论(0) 推荐(0) 编辑