记录

× 文章目录
  1. 1. Centos 7 安装nmap 7.8
  2. 2. centos 7 安装 mysql 8

Centos 7 安装nmap 7.8

yum直接安装nmap为6.40版本,新版nmap为7.8

yum info nmap

直接使用rpm包安装最新版

https://nmap.org/dist/ 下载

rpm -vhU https://nmap.org/dist/nmap-7.80-1.x86_64.rpm

centos 7 安装 mysql 8

下载mysql repo源并安装

1
rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

查看可用的mysql版本

1
yum repolist all | grep mysql

修改源文件,禁用5.7,启用8.0

1
Vi /etc/yum.repos.d/mysql-community.repo

把里面的8.0enabled改为1就可以了,其他的版本改为0

修改完之后查看可用版本

1
2
3
4
# yum repolist enabled | grep mysql 
mysql-connectors-community/x86_64 MySQL Connectors Community 131
mysql-tools-community/x86_64 MySQL Tools Community 100
mysql80-community/x86_64 MySQL 8.0 Community Server 145

8.0版本启用后,安装Mysql

1
yum install -y mysql-community-server

启动,开机启动

1
2
3
systemctl start mysqld
systemctl enable mysqld
systemctl daemon-reload

查看随机生成的密码,注意记住密码

1
grep 'temporary password' /var/log/mysqld.log

修改root密码

1
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';