LINUX 服务器安装nginx redis jdk等步聚

1、安装指令步聚

sudo yum update 更新linux系统
yum install -y nginx 安装nginx
systemctl enable nginx 设置开机启动nginx
systemctl start nginx 启动nginx
yum install -y redis 安装redis
systemctl enable redis 设置开机启动redis
systemctl start redis 启动redis

2、CentOS 安装nginx yum install nginx 时报错:No package nginx available.

 LINUX 服务器安装nginx redis jdk等步聚

 

 

 

解决办法:

先安装epel: 

yum install epel-release

然后再安装nginx

3、JDK安装步聚
 Centos8 装 jdk8(rpm方式)
准备工作 oracle账号: 313764622@qq.com
Oracle.123 (1)在线下载 wget https://download.oracle.com/otn/java/jdk/8u301-b09/d3c52aa6bfa54d3ca74e617f18309292/jdk-8u301-linux-x64.rpm?AuthParam=1634537128_7ed434c081b1c680463fc5f07254316c
问题 wget未找到命令    YUM -Y INSTALL WGET (2)在线安装 rpm -ivh jdk-8u301-linux-x64.rpm (3)在线验证 Java --version javac
上一篇:docker-compose:行1: Not: 未找到命令


下一篇:centos7.9使用yum方式安装MongoDB 5.x