• Linux安装软件的3种方式


    1.源代码编译安装

    1. 下载源代码,它是一个压缩包
    2. 解压缩,源代码包
    3. 进入源代码包
    4. 找到configure脚本,进行执行,释放makefile的指令
    5. 通过linux的make指令,开始编译
    6. 开始编译且安装软件,  make install

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

  • 相关阅读:
    02-qiankun-gitsubmodule使用及部署流程
    01-eslint/vetur/preitter/vscode配置
    01-mac m1 安装nvm / node-sass报错
    17-JS数组方法,是否改变原数组归纳
    03-webpack之require.context()实现前端工程自动化
    最小生成树prim算法
    bfs
    数据结构实验三题目一
    邻接表
    邻接矩阵
  • 原文地址:https://www.cnblogs.com/xuqidong/p/11145835.html
Copyright © 2020-2023  润新知