使用sed將/etc/httpd/conf/httpd.conf中的 #NameVirtualHost*:80 的注釋去掉的命令是: sed-i/^#NameVirtualHost/s/#/\//etc/httpd/conf/httpd.conf