


2.安装配置git
2.1 下载git;
2.2 配置git; 进入git bash
a)配置用户名
git config --global user.name "username" //名字
b) 配置邮箱
git config --global user.email "username@email.com" I(注册账号时用的邮箱)
2.3 配置ssh免密登录
进入git bash;使用:ssh- keygen -t rsa -C "xxxx@xxxoxx.com"命令。连续三次回车。一般用户目录下会有 id_rsa id_rsa.pub 或者cat ~/.ssh/id_rsa.pub 登录进入 gitee,在设置里面找到SSH KEY将.pub文件的内容粘贴进去使用ssh-T git@gitee.com测试是否成功即可
2.4登陆gitee配置公钥

3.从gitee初始化一个项目
3.1初始化创建项目



效果

3.2 在idea中下载创建好的项目


3.2创建商品服务模块 gulimall-product


3.3创建电商云上商城-仓储服务模块 gulimall-ware

3.5创建电商云上商城-会员服务模块 gulimall-member

3.6创建电商云上商城-优惠券服务模块 gulimall-coupon

3.7拷贝一份pom文件给父工程
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.atguigu.gulimall</groupId>
<artifactId>gulimall</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>gulimall</name>
<description>聚合服务</description>
<packaging>pom</packaging>
<modules>
<module>gulimall-coupon</module>
<module>gulimall-member</module>
<module>gulimall-order</module>
<module>gulimall-product</module>
<module>gulimall-ware</module>
</modules>
</project>
3.8.修改.gitignore文件,过滤不需要提交的文件后缀
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
**/mvnw
**/mvnw.cmd
**/.mvn
**/target/
.idea
**/.gitignore
3.9提交到码云

4.数据库配置
4.1数据库sql文件生成



4.2练习虚拟机把sql导入到虚拟机的数据库中

使用docker ps查询正在运行的docker容器
sudo docker update mysql --restart=always
