root@yujiang-ceph-1:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} network: ethernets: ens160: dhcp4: false addresses: [192.168.1.127/24] gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.1, 114.114.114.114] version: 2
编译deb
1 2 3 4 5 6 7 8 9 10 11 12 13
解压xz文件 xz -d prometheus_2.1.0+ds-1.debian.tar.xz tar -xvf prometheus_2.1.0+ds-1.debian.tar
压缩xz文件 tar cvf prometheus_2.1.0+ds-1.debian.tar debian/ xz -z prometheus_2.1.0+ds-1.debian.tar