第一种**
apt-get
例如:
sudo apt-get install 软件名
使用:sudo service 软件名 start/stop/restart
第二种
debain:dpkg的命令,这种方法需要你找到一个后缀名为 .deb的压缩包
然后:
-i:安装
-r:卸载
-l:查看软件信息
-L:查看软件安装目录
例如:
sudo dpkg -i 软件名
第三种
源码安装
例如:安装nginx
配置:configure
输入命令:./configure --prefix=/usr/local/nginx
编译:make
安装:sudo make install