sed -i 's@^#LoadModule rewrite_module@LoadModule rewrite_module@' $IN_DIR/apache/conf/httpd.conf
sed -i 's@^#LoadModule expires_module@LoadModule expires_module@' $IN_DIR/apache/conf/httpd.conf
sed -i 's@^#LoadModule\(.*\)mod_deflate.so@LoadModule\1mod_deflate.so@' $IN_DIR/apache/conf/httpd.conf
@相当于/,替换时用的分割符,因为要替换的内容中有/,所以用@
阅读(2958) | 评论(0) | 转发(0) |