mysql -uroot -p #登录进入mysql use mysql; create user nacos IDENTIFIED by 'nacos'; #创建nacos用户 show grants for 'nacos'; #查看权限 grant ALL PRIVILEGES on nacos_config.* to 'nacos' identified by 'nacos'; # 授权 show grants for nacos; #再次查看,权限未变重启mysql
创建数据库
1 2
mysql -unacos -hlocalhost -p create database nacos_config;
创建nacos表
1 2
mysql -unacos -pnacos -Dnacos_config < sql文件地址/nacos-mysql.sql mysql -unacos -pnacos -Dnacos_config < sql文件地址/1.4.0-ipv6_support-update.sql
yum install -y nginx #安装路径在 /usr/local/nginx cd /usr/local/nginx cd conf vi nginx.conf #在http的节点下添加 # nacos cluster upstream nacos_cluster { server IP:8848; server IP:8848; server IP:8848; }
server { listen 8848; server_name 本机IP; client_max_body_size 1024M;