查看已安裝軟件
dpkg -l | grep -i name
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
表示nginx已啟動
啟動服務
systemctl start nginx
也可以在其他電腦的瀏覽器里輸入服務器的IP地址,查看服務器nginx是否運行