安裝java運行環境
資源列表
- idea
- webstorm
- git
- sourceTree
- edas
- alibaba tomcat
- apache tomcat
- xshell
- xftp
- jdk
- maven
安裝環境變量
JAVA_HOME C:\Program Files\Java\jdk1.8.0_144
PATH %JAVA_HOME%\bin;
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
安裝maven
MAVEN_HOME D:\Java\maven\apache-maven-3.3.9
maven 配置文件詳見資源列表
安裝edas運行環境
簡易版配置中心edas-config-center
startup.bat 中添加兩句話避免重啓手動刪除文件的問題
rd /s /q .\config-center-db
rd /s /q .\logs
hosts 中配置域名
C:\Windows\System32\drivers\etc\hosts
192.168.1.100 jmenv.tbsite.net
或
127.0.0.1 jmenv.tbsite.net
如果第二個不生效換用第一個, 這裏偶爾會有坑
idea配置
-Dpandora.location=D:\Java\EDAS\hsf\taobao-hsf.sar
idea的配置詳見資源列表
安裝zookeeper
下載
http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz
解壓
D:\Java\zookeeper-3.4.6
配置
zoo.cfg
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
安裝worker運行環境
安裝tomcat
http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.82/bin/apache-tomcat-7.0.82-windows-x64.zip
下載worker war包
http://code.taobao.org/p/tbschedule/src/trunk/console/ScheduleConsole.war
啓動worker
改ROOT
http://localhost:8080/index.jsp?manager=ture
配置worker
自己解決這裏只提供配置環境的搭建
安裝git
下載
https://github.com/git-for-windows/git/releases/download/v2.15.1.windows.2/Git-2.15.1.2-64-bit.exe
git最佳實踐
http://jiongks.name/blog/a-successful-git-branching-model/
SourceTree
個人比較喜歡的軟件,喜歡自行安裝,友情提示需要翻牆和帳號註冊等,嫌麻煩的可以繞路
配置SSH 公鑰
$ git config --global user.name "user.name"
$ git config --global user.email "[email protected]"
$ cd ~/.ssh
$ssh-keygen -t rsa -C "[email protected]"
一路回車
這裏提示一下,由於筆者比較喜歡中文名,建議大家使用中文名,id_rsa.pub裏是你需要的公鑰, 直接在gitlab的ssh配置頁增加配置就好
安裝前端環境
安裝node
下載
https://nodejs.org/download/release/v6.12.2/node-v6.12.2-win-x64.zip
友情提示一定不要安裝過高的版本,筆者提供的版本足夠使用
配置npm
node路徑D:\Java\nodejs,在nodejs下立"node_global"及"node_cache"兩個文件夾
$ npm config set prefix "D:\Java\nodejs\node_global"
$ npm config set cache "D:\Java\nodejs\node_cache"
配置系統環境變量
NODE_PATH D:\Java\nodejs\node_global\node_modules
配置用戶環境變量
PATH D:\Java\nodejs\node_global\
安裝vue
# 最新穩定版
$ npm install vue
# 全局安裝 vue-cli
$ npm install --global vue-cli
# 創建一個基於 webpack 模板的新項目
$ vue init webpack my-project
# 安裝依賴,走你
$ cd my-project
$ npm install
$ npm run dev