1.源代码编译安装
- 下载源代码,它是一个压缩包
- 解压缩,源代码包
- 进入源代码包
- 找到configure脚本,进行执行,释放makefile的指令
- 通过linux的make指令,开始编译
- 开始编译且安装软件, 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方式手动安装