Debian系统软件安装

查看已安装软件

dpkg -l | grep -i name

clipboard

apt-get remove name

建议用root安装,有一些工具,使用非root用户安装后,仍然不识别命令,可能跟权限有关。

netstat: command not found

说明没有安装netstat工具,而该工具在 net-tools 工具包内。

apt-get install net-tools

Ok.再说一句,net-tools包还包含:arp, ifconfig, netstat, rarp, nameif and route这几个工具。

安装nginx

apt-get update apt-get install nginx

查看nginx状态

systemctl status nginx

clipboard

表示nginx已启动

启动服务

systemctl start nginx

也可以在其他电脑的浏览器里输入服务器的IP地址,查看服务器nginx是否运行

clipboard

原文地址:https://www.cnblogs.com/zhupengfei/p/11737811.html