Hefery 的个人网站

Hefery's Personal Website

Contact:hefery@126.com
  menu
73 文章
0 浏览
6 当前访客
ღゝ◡╹)ノ❤️

Linux部署手册

YUM

cd /etc/yum.repos.d/
cp CentOS-Base.repo CentOS-Base-repo.bak
curl -o /etc/yum.repos.d/CentOS-Base.repo mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all 
yum makecache

JDK

MySQL

在线安装:
	下载rpm文件:yum localinstall https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
	安装MySQL:yum install mysql-community-server -y

本地安装:
	解压:tar xvf mysql-8.0.11-1.el7.x86_64.rpm-bundle.tar
	安装依赖:yum install perl -y;  yum install net-tools -y
	卸载mariadb:rpm -qa|grep mariadb;  rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64 --nodeps
	安装MySQL::
		rpm -ivh mysql-community-common-8.0.11-1.el7.x86_64.rpm 
        rpm -ivh mysql-community-libs-8.0.11-1.el7.x86_64.rpm 
        rpm -ivh mysql-community-client-8.0.11-1.el7.x86_64.rpm 
        rpm -ivh mysql-community-server-8.0.11-1.el7.x86_64.rpm
    修改MySQL目录权限:chmod -R 777 /var/lib/mysql/
    初始化MySQL:mysqld --initialize;  chmod -R 777 /var/lib/mysql/*

启动MYSQL:service mysql(d) start
查看启动状态:service mysqld status
重启MySQL:service mysqld restart
查看初始密码:grep 'temporary password' /var/log/mysqld.log
登录MySQL:mysql -u root -p
登录修改密码:
	alter 'root'@'localhost' identified by "Linuxidc.com@123";
	set global validate_password.policy=0;
	set global validate_password.length=1;
	ALTER user 'root'@'localhost' IDENTIFIED BY '123456';

允许远程使用root帐户:
	use mysql
	update user set host = '%' where user ='root';
	FLUSH PRIVILEGES;
允许远程访问MySQL数据库:
	vim /etc/my.cnf
		character_set_server = utf8
		bind-address = 0.0.0.0
开启防火墙3360端口:
	firewall-cmd --zone=public --add-port=3306/tcp --permanent
	firewall-cmd --reload

Redis

Kafka

Nacos Server

Zipkin Server


标题:Linux部署手册
作者:Hefery
地址:http://hefery.icu/articles/2022/04/09/1649436028339.html