公司环境搭建(windows10)

本文涉及的产品
服务治理 MSE Sentinel/OpenSergo,Agent数量 不受限
简介: 安装java运行环境 资源列表 idea webstorm git sourceTree edas alibaba tomcat apache tomcat xshell xftp .

安装java运行环境

资源列表

  1. idea
  2. webstorm
  3. git
  4. sourceTree
  5. edas
  6. alibaba tomcat
  7. apache tomcat
  8. xshell
  9. xftp
  10. jdk
  11. 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 "yourmail@gmail.com"
 $ cd ~/.ssh
 $ssh-keygen -t rsa -C "paascloud.net@gmail.com"
 一路回车

这里提示一下,由于笔者比较喜欢中文名,建议大家使用中文名,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
相关实践学习
使用DAS实现数据库自动SQL优化
本场景介绍如何使用DAS实现数据库自动SQL优化。
SpringMVC框架入门
Spring MVC属于SpringFrameWork的后续产品,已经融合在Spring Web Flow里面。Spring 框架提供了构建 Web 应用程序的全功能 MVC 模块。在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts2等。 相关的阿里云产品企业级分布式应用服务 EDAS:企业级分布式应用服务 EDAS(Enterprise Distributed Application Service)是一个应用托管和微服务管理的 PaaS 平台,提供应用开发、部署、监控、运维等全栈式解决方案,同时支持 Spring Cloud、Apache Dubbo(以下简称 Dubbo )等微服务运行环境,助力您的各类应用轻松上云。产品详情: https://www.aliyun.com/product/edas 
目录
相关文章
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
1月前
|
存储 安全 网络安全
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
|
1月前
|
网络协议 数据安全/隐私保护 Windows
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
43 1
|
1月前
|
存储 数据安全/隐私保护 索引
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
109 1
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
48 0
|
3月前
|
缓存 网络协议 数据安全/隐私保护
[运维笔记] - (命令).Windows server常用网络相关命令总结
[运维笔记] - (命令).Windows server常用网络相关命令总结
182 0
|
1月前
|
安全 数据安全/隐私保护 Windows
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
|
1月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
|
1月前
|
存储 网络安全 数据安全/隐私保护
Windows Server 2019 IIS HTTPS证书部署流程详解
Windows Server 2019 IIS HTTPS证书部署流程详解
|
1月前
|
存储 Windows
windows server 2019 云服务器看不见硬盘的解决方案
windows server 2019 云服务器看不见硬盘的解决方案