linux
松果仁
淡泊名利 宁静致远
展开
-
linux目录下的txt等文本文件字符统一替换命令
sed -i "s/192.168.1.62/172.17.0.1/g" `grep "192.168.1.62" -rl /upa/test|grep -v log`;sed -i "s/yarn/spark:\/\/hosts-01:7077/g" `grep "yarn" -rl /upa/test/sh|grep -v log`;原创 2020-05-11 15:50:05 · 366 阅读 · 0 评论 -
curl post json请求
curl -H "Content-Type:application/json" -X POST -d '{"service":10,"partId":"2354325235"}' 'http://www.baidu.ad/getapi'原创 2019-03-11 16:45:54 · 27937 阅读 · 0 评论 -
centos ntpdate同步阿里时钟服务器
安装ntpdate插件#yum install ntpdate同步时钟ntpdate ntp1.aliyun.com阿里服务器地址经典网络内网 专有网络VPC内网 公网ntp1.aliyun.comntp2.aliyun.comntp3.aliyun.comntp4.aliyun.comntp5.aliyun.comntp6.aliyun.comntp7.aliyun.co...原创 2019-07-30 09:32:25 · 8213 阅读 · 0 评论