例如:RedHat、CentOS
路径 /var/lib/rpm命令
rpm -ivh 包全名 (install verbose hash) ->安装rpm -qi 包名 -qip 未安装包名 ->查信息rpm -ql 包名 ->查包的安装路径文件rpm -qf 文件名 ->查文件所在包有依赖性问题
yum list/grouplist
自动联网下载解决依赖性问题
仅主机模式 -> VMnet1 (192.168.18.1)
ip设置必须和对应模式的网卡的ip网段相符合
vim /etc/sysconfig/network-script/ifcfg-eth0
ONBOOT=yes BOOTPROTO=static IPADDR=192.168.112.138 NETMASK=255.255.255.0 GATEWAY=192.168.112.2(查看:虚拟机-编辑-虚拟网络编辑器-选中NAT模式的网卡-NAT设置-网关IP) DNS1=8.8.8.8再次访问 192.168.112.138/index.html
关闭防火墙后,其他机器才能访问 service iptables stop 或者 在防火墙开启80端口 vim /etc/sysconfig/iptables
当前目录 /home/jhz/桌面, 存在 hello/1.txt hello/2.txt
tar -zcvf hello.tar.gz hello/ 压缩tar -jcvf hello.tar.bz2 hello/tar -xvf hello.tar.gz 解压zip -d hello.zip hello/unzip hello.zip