批量替换端口

时间:2021-01-28 11:38:08   收藏:0   阅读:0

 

批量将管理端口17001变更成18001,如下脚本:

[root@pxc1 ~]# grep  -Rl  "17001"  /weblogic/web11g36|xargs sed  -i ‘s/17001/18001/g‘

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!