ubuntu14.04修改服务(ecs)名称

sed -i "s|`cat /etc/hostname`|test|g" /etc/hosts && cat /etc/hosts
echo test > /etc/hostname
hostname test

评论

暂无评论