Linux安装软件的3种方式

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方式手动安装

猜你喜欢

转载自www.cnblogs.com/xuqidong/p/11145835.html
今日推荐