[配置]开发环境配置

[配置] 开发环境配置

一、Windows开发环境配置

1、JDK环境变量配置

JAVA_HOME

C:\Program Files\Java\jdk1.8.0_181

CLASSPATH

.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

path

%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

验证是否安装成功

C:\Users\Davidbieber> java
C:\Users\Davidbieber> javac

2、Mysql配置

MYSQL_HOME

C:\Program Files (x86)\MySQL\MySQL Server 5.5

path

%MYSQL_HOME%\bin

验证是否安装成功

C:\Users\Davidbieber> mysql -uroot -p
Enter password: **********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.5.18 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

3、Maven配置

setting.xml配置

<!--设置maven镜像地址-->
<mirrors>
    <mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>       
    </mirror>
</mirrors>
 
<!--设置默认JDK版本-->
<profiles>    
	<profile>    
        <id>jdk-1.8</id>    
         <activation>    
              <activeByDefault>true</activeByDefault>    
              <jdk>1.8</jdk>    
          </activation>    
        <properties>    
        <maven.compiler.source>1.8</maven.compiler.source>    
        <maven.compiler.target>1.8</maven.compiler.target>    
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>    
        </properties>    
    </profile>
</profiles>
<!--设置maven本地仓库-->
<localRepository>D:\MavenRepository</localRepository>

MAVEN_HOME

D:\apache-maven-3.5.4

path

%MAVEN_HOME%\bin

验证是否安装成功

C:\Users\Davidbieber> mvn -v

二、Mac开发环境配置

1、.bash_profile 配置

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH:.
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export JAVA_HOME
export PATH
export CLASSPATH
export PATH=/usr/local/mysql/bin:$PATH
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH

三、通用环境配置

1、npm 配置

npm插件安装路径与缓存路径更改

//全局安装路径
npm config set prefix "ABSOLUTE_PATH"`
//全局缓存路径
npm config set cache "ABSOLUTE_PATH"`

npm插件安装路径与缓存路径验证

//验证全局安装路径
npm config get prefix
//验证全局缓存路径
npm config get cache

npm版本查询

npm -v

2、node配置

node版本验证

node -v

3、webpack 配置

webpack 版本验证

webpack -v

4、Vue.js 配置

vue版本验证

vue -V
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值