0-环境安装-整体
mysql
mysql8绿色安装教程:
https://blog.csdn.net/qq_58608526/article/details/134408777
创建my.ini配置:
[mysqld]
# 设置3306端口
port=3306
# 设置mysql的安装目录
basedir=D:\\software\\mysql\\mysql-8.0.22-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\\software\\mysql\\mysql-8.0.22-winx64\\data
# 允许最大连接数
max_connections=200
# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统
max_connect_errors=10
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=3306
default-character-set=utf8
执行:
在D:\software\mysql\mysql-8.0.22-winx64\bin目录,输入cmd回车,执行一下命令
mysqld --initialize --console
maven
maven配置:
https://blog.csdn.net/weixin_47698656/article/details/139228198
https://gitcode.csdn.net/65ec3f5d1a836825ed794f33.html
nacos
版本下载对照:https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E
Nacos下载地址:https://github.com/alibaba/nacos/releases
Spring Cloud Alibaba Version:2021.0.5.0
nacos.version>2.2.4
创建库:
CREATE DATABASE IF NOT EXISTS `lamp_nacos` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
导入sql到lamp_nacos库:
D:\software\nacos\nacos-server-2.3.1\conf\mysql-schema.sql
nacos配置文件修参考:
https://tangyh.top/doc/start/%E5%8D%95%E6%9C%BA%E7%89%88Nacos%E5%90%AF%E5%8A%A8.html
nacos启动:
参考:https://blog.csdn.net/JIE_PLAY/article/details/136482194
在bin目录下cmd,执行命令启动:
D:\software\nacos\nacos-server-2.3.2\bin
.\startup.cmd -m standalone
Windows 启动命令(standalone代表着单机模式运行,非集群模式): startup.cmd -m standalone
参考:https://blog.csdn.net/weixin_44203609/article/details/120951913
访问地址:http://192.168.1.79:8848/nacos/index.html
nacos设置密码:https://blog.csdn.net/taotao_guiwang/article/details/135359247
Sentinel
Sentinel Version:1.8.6
Seata下载与配置、启动:https://blog.csdn.net/qq_36551991/article/details/135968940
seata-server.bat -h 127.0.0.1 -m db
seata的快速入门和实战:https://blog.csdn.net/2301_78646673/article/details/136771034
redis
源码下载地址:https://github.com/redis/redis/releases/tag/7.2.5
下载:https://github.com/tporadowski/redis/releases/tag/v5.0.14.1
参考:https://blog.csdn.net/weixin_46370595/article/details/130681444
参考:https://blog.csdn.net/qq_41966713/article/details/129134058
redis启动:
1、启动服务器:cmd
redis-server.exe redis.windows.conf
2、默认端口号:6379
3、关闭服务器:直接关闭窗口
nvm 安装
直接安装nvm最新版,然后使用nvm命令,安装node版本
nvm安装教程:https://blog.csdn.net/qq_22182989/article/details/125387145
设置nvm源:
位置:D:\software\nvm\settings.txt新增以下配置
node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/
对Node设置npm源:
npm config set registry=https://registry.npmmirror.com/
安装依赖命令:
npm i
启动命令:
npm run dev
注意:使用Node18及以后得版本,启动会报错,故需要package.json中设置
SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve