zoukankan      html  css  js  c++  java
  • 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方式手动安装

  • 相关阅读:
    移动端常用状态
    css 动画
    jQuery源码解析 -- 概述
    Bearer Token && JWT --- 深入理解令牌机制
    字符串 ----> switch-case 语句
    Vuejs选项: provide/inject
    本地windows系统-》windows云服务器文件上传
    CSS基础点
    函数的调用 与 this
    两个有意思的网站
  • 原文地址:https://www.cnblogs.com/xuqidong/p/11145835.html
Copyright © 2011-2022 走看看