软件安装有三种方式
1 yum
2 npm
3源码安装
软件通常按照在cd /usr/local/ 目录下
然后 解压 tar -zxf 文件名 ///unzip 文件名
然后可以选择删除压缩包 rm -rf ./文件名
如果需要配置环境变量:用户级别的环境变量存放在 :/.bashrc
系统级别的环境变量存放在 :/etc/profile
vim /etc/profile
#定义一个变量
export 变量名=/use/local/soft/软件名
把变量名添加到path中
expot Path=$环境变量/bin ;$PATH(用;隔开)
:wq
rescoure /etc/profile 使文件生效
source /etc/profile //让修改的配置文件生效
软件名 -version //测试软件是否成功