加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Linux安装软件的3种方式

发布时间:2020-12-13 23:11:28 所属栏目:Linux 来源:网络整理
导读:1.源代码编译安装 2.yum方式,自动搜索依赖关系,自动下载解决依赖关系 446 pip3 list 447 pip3 install -i https://pypi.douban.com/ simple flask 448 flask 449 pip3 list 450 clear 451 cd /etc/yum.repos.d/ 452 ls 453 mkdir allrepo 454 mv ./* allre

1.源代码编译安装

2.yum方式,自动搜索依赖关系,自动下载解决依赖关系

 446  pip3 list
  447  pip3 install -i https://pypi.douban.com/simple flask
  448  flask
  449  pip3 list
  450  clear
  451  cd /etc/yum.repos.d/
  452  ls
  453  mkdir allrepo
  454  mv ./* allrepo
  455  ls
  456  cd allrepo
  457  ls
  458  cd ..
  459  tree yum.repos.d
  460  cd yum.repos.d
  461  ls
  462  yum install wget -y
# 下载阿里云yum源1
  463  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  464  ls
  465  yum install nginx -y
# 下载阿里云yum源2
  466  wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  467  ls
  468  yum install sl -y
  469  sl
  470  yum install nginx -y
  471  systemctl start nginx
  472  ps -ef | grep nginx
  473  netstat -tunlp | grep 80
  474  iptables -F
  475  rpm -ql nginx
  476  find / -name index.html
  477  cd /usr/share/nginx/html/index.html
  478  vim /usr/share/nginx/html/index.html

3.rpm方式手动安装

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读