/dog_catch_1_duck.svg

张理坤的博客

ubuntu常用配置

编译环境安装 sudo apt-get install -y build-essential tcl gcc make zlib1g-dev libssl-dev libncursesw5-dev libgdbm-dev libc6-dev libffi-dev openssl libxml2-dev libpcre3 libpcre3-dev libncurses5-dev libicu-dev libmcrypt-dev curl libcurl4-gnutls-dev libjpeg-dev libpng-dev libxslt1-dev 切换语言环境 dpkg-reconfigure locales Ubuntu 网卡配置文件 查看网卡硬件信息 lshw -short | grep network ifconfig -a 网卡配置文件(1

centos常用配置

centos系统升级请看 Centos7 升级 RHEL8 网络配置 vim /etc/sysconfig/network-scripts/ifcfg-ens** 固定ip配置 TYPE=Ethernet BOOTPROTO=none DEVICE=ens33 ONBOOT=yes IPADDR=10.0.0.7 PREFIX=24 GATEWAY=10.0.0.2 DNS1=10.0.0.2 DNS2=223.5.5.5 DOMAIN=10.0.0.2 DHCP配置 TYPE=Ethernet BOOTPROTO=dhcp PERSISTENT_DHCLIENT=yes DEVICE=ens33 ONBOOT=yes 临时修改IP(重启失效) ifconfig eth0 192.168.120.56 ifconfig eth0 192.168.120.56 netmask 255.255.255.0 ifconfig