1、实验-dpkg
dpkg -l vsftpd
dpkg-query: 没有找到与 vsftpd 相匹配的软件包
wget http://ftp.de.debian.org/debian/pool/main/v/vsftpd/vsftpd_3.0.3-12_amd64.deb
dpkg -i dpkg -i vsftpd_3.0.3-12_amd64.deb
dpkg -l vsftpd
期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)
| 状态=未安装(n)/已安装(i)/仅存配置(c)/仅解压缩(U)/配置失败(F)/不完全安装(H)/触
|/ 错误?=(无)/须重装(R) (状态,错误:大写=故障)
||/ 名称 版本 体系结构 描述
+++-==============-============-============-===================================
ii vsftpd 3.0.3-12 amd64 lightweight, efficient FTP server w
dpkg -L vsftpd
dpkg -s vsftpd
dpkg -r vsftpd
dpkg -P vsftpd
2、实验-apt-get
apt-get update
apt-get upgrade
apt-cache search nginx //搜索软件包
apt-cache show nginx
apt-get install -y nginx
apt-get reinstall -y nginx
apt-get -f install nginx
apt-get remove nginx
apt-get purge nginx
3、实验-apt客户端配置文件
vim /etc/apt/sources.list
deb [by-hash=force] https://packages.chinauos.cn/uos eagle main contrib non -free
指示包类型 安全校验 软件源地址
4、实验-源码包安装
wget http://nginx.org/download/nginx-1.14.2.tar.gz
./configure --help
./configure --prefix=/usr/local/nginx --without-http_rewrite_module --without-http_gzip_module
make && make install
/usr/local/nginx/sbin/nginx
netstat -anptu |grep nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13597/nginx: master