003-centos搭建idea开发java

一、jdk安装

  卸载openjdk

  安装jdk

  配置环境变量

二、下载idea

  安装:http://www.cnblogs.com/bjlhx/p/6667291.html

三、配置git

  http://www.cnblogs.com/bjlhx/category/993475.html

  生成ssh

  可以clone但是不能push

错误

  Failed with error: unable to read askpass response from     'C:\Users\eddy\.WebStorm2017.1\system\tmp\intellij-git-askpass.bat'
  3             failed to execute prompt script (exit code 1)
  4             could not read Username for 'http://gitlab.qdum.com': No error  

原因

   .git文件下     config文件中没有用户身份信息

解决

  在请求串中加入身份信息即可,格式为:

https://[userName]:[password]@github.com/[username]/project.git

修改后

1 [remote "origin"]
2     url = http://bjlhx15:11111111@github.com/bjlhx15/testgit.git
3     fetch = +refs/heads/*:refs/remotes/origin/*

注:1111111代表密码,此处为示例

四、将项目变成maven时,

问题需要查看日志,在idea的help菜单下点击show log in finder,打开日志.

查看具体错误进行修改。

  如:无权限问题:chmod a+x /path/to/tomcat/bin/catalina.sh

 

posted @ 2017-12-11 21:08  bjlhx15  阅读(487)  评论(0编辑  收藏  举报
Copyright ©2011~2020 JD-李宏旭