在生产库 mogodb 和 oracle 上创建索引注意事项
mogodb 生产库创建索引要加 background oracle 生产库创建索引要加 online
shell判断文件是否存在
1. shell判断文件,目录是否存在或者具有权限 2. #!/bin/sh 3. 4. myPath="/var/log/httpd/" 5. myFile="/var /log/httpd/access.log" 6. 7. # 这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 8. if [ ! -x "$myPath"]; then 9. mkdir "$myPath" 10. fi&nb...