内容目录
						
						从零开始搭建公司后台运行环境
项目为分布式项目,基于现有知识范畴内的搭建。
项目运行环境
- 先安装所有需要用到的框架和程序
 - 打开项目,下载maven依赖
 - 启动
 mariaDB,导入项目数据库- 启动
 redis- 启动
 apache-zookeeper- 启动项目
 - 启动前端访问后台,OK😁
 
| KEY | VALUE | DESCRIBE | 
|---|---|---|
| jdk | 1.8 | |
| idea | 2019.2.4 | |
| apache-maven | apache-maven-3.6.2 | |
| apache-zookeeper | apache-zookeeper-3.5.6-bin | |
| redis | Windows-3.2.100 | |
| mariaDB | 10.4.6-MariaDB | 
1️⃣ jdk
使用jdk1.8
2️⃣ idea
最新版idea
插件:Free MyBatis plugin
3️⃣ apache-maven
直接在安装目录下新建一个仓库文件夹
${app}/repository,用来下载依赖,类似于node_modules.
maven 配置(密码已隐藏)
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
          <!-- 配置本地仓库路径 -->
    <localRepository>W:\Server\apache-maven-3.6.2\repository</localRepository>
  <pluginGroups>
  </pluginGroups>
  <proxies>
  </proxies>
  <servers>
    <!-- 发布私服的用户和密码 -->
    <server>
        <id>nexus</id>
        <username>admin</username>
        <password>******</password>
    </server>
  </servers>
  <mirrors>
        <mirror>
            <id>nexus</id>
            <url>http://maven.lvyii.com/repository/maven-public/</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
  </mirrors>
  <profiles>
    <profile>
            <id>nexus</id>
            <!--所有请求均通过镜像 -->
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <updatePolicy>always</updatePolicy>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <updatePolicy>always</updatePolicy>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <updatePolicy>always</updatePolicy>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <updatePolicy>always</updatePolicy>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
  </profiles>
  <activeProfiles>
        <activeProfile>nexus</activeProfile>
    </activeProfiles>
</settings>
4️⃣ apache-zookeeper
下载打开就能用,注意需要下载带bin的版本,不带bin的是源码
地址:https://zookeeper.apache.org/
5️⃣ redis
下载windows版本的Redis
注意java连接需要设置密码
windows改配置是
${app}/redis.windows.conf里面的配置
官网上不提供windows版本的,现在官网没有下载地址,只能在github上下载,官网只提供linux版本的下载 官网下载地址:**redis.io/download**
Github源码地址:https://github.com/antirez/redis
Github下载地址:https://github.com/MicrosoftArchive/redis/releases
或者https://github.com/antirez/redis/releases
Redis中文网:http://www.redis.cn/
这里我选择的是x64-3.2.100,下载的时候下载msi(不要下载zip的压缩包)
建议:在github上公开项目下载速度非常慢,我100M光钎每秒速度不到10K
文章来源:https://www.jianshu.com/p/e16d23e358c0
6️⃣ mariaDB
需要设置密码
xmpp自带mariaDB

