centos8最小化安装配置开发环境

0.yum install net-tools 安装网络管理工具

1.安装jdk11

yum search java-11

选择jdk环境安装 yum install 

2.安装python

yum install python

根据提示选择python36进行安装 yum install python36

3.安装mysql

yum search mysql-server

yum install 查找到的mysql-server

service mysqld start

service mysqld status

mysql -uroot -p

空密码进修改密码ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

为了远程登陆可以新建root远程登录账户并设置权限

create user 'root'@'%' identified by '123456';

grant all privileges on '.' to 'root'@'%' ;

flush privileges;

特别注意:需要关闭防火墙 firewall-cmd --state

firewall-cmd --permanent --zone=public --add-port=3306/tcp 永久添加该端口去掉permanent则为临时

firewall-cmd --reload 加载配置使修改生效

firewall-cmd --permanent --zone=public --list-ports 查看开启端口是否为3306

systemctl enable mysqld.service 设置开机启动

4.安装mongodb

vim /etc/yum.repos.d/mongodb-org-4.2.repo

[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

然后 yum install -y mongodb-org安装

修改配置文件 vim /etc/mongod.conf

net:

  port:27017

  bindIp:0.0.0.0

同样需要打开防火墙端口

firewall-cmd --permanent --zone=public --add-port=27017/tcp 永久添加该端口去掉permanent则为临时

firewall-cmd --reload 加载配置使修改生效

firewall-cmd --permanent --zone=public --list-ports

设置开机启动 systemctl enable mongod.service

卸载sudo yum erase $(rpm -qa | grep mongodb-org)

  sudo rm -r /var/log/mongodb
  sudo rm -r /var/lib/mongo

5.安装redis

yum install redis

vim /etc/redis.conf

firewall-cmd --permanent --zone=public --add-port=6379/tcp

firewall-cmd --reload

systemctl enable redis

6.安装rabbitmq

7.安装elasticsearch

你可能感兴趣的:(centos8最小化安装配置开发环境)