shell脚本
shelley1902
初次见面,请多指教
展开
-
自动创建数据库并按顺序导入sql文件的shell脚本
#!/bin/bash #author xiaobao #date 2017-3-22 9:39:27set -e LC_ALL=C LANG=C unset TZ TZBase=$(LC_ALL=C TZ=UTC0 date -R) UTdate=$(LC_ALL=C TZ=UTC0 date -d "$TZBase") TZdate=$(unset TZ ; LANG=C原创 2017-03-22 09:46:43 · 2299 阅读 · 0 评论 -
优化内核参数的shell脚本
#!/bin/bash #author xiaobao #date 2016-12-22 21:12:25#delete Date=$(date +%Y%m%d%H%M%S) cp /etc/sysctl.conf /etc/sysctl.conf_${Date} sed -i "/^fs.file-max/d" /etc/sysctl.conf sed -i "/^net原创 2017-03-22 10:34:06 · 947 阅读 · 0 评论