NetBeans安装和使用JEECG-soeasy-从零开始
本帖最后由 扶程星云 于 2016-8-6 08:37 编辑NetBeans 开发环境配置及相关软件安装步骤
一、JDK1.81、软件:JDK-8u66http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/9GiPWlPpaDPnX2sZxpiCN**KTV*k2230tHy89cI*XFY!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=oAH9AAAAAAADAHk!&su=0203763681&sce=0-12-12&rf=2-9 2、安装步骤 (1).双击exe文件运行,点击下一步,可更改安装路径后按照安装步骤继续安装。安装过程中会出现两次 安装提示 。第一次是安装 jdk ,第二次是安装 jre 。建议两个都安装在同一个java文件夹中的不同文件夹中。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/8CPNbapoguSLvENg2EQv4gyZl1KReJrkP8CwBWZT8qo!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=jgEuAQAAAAADAIU!&su=077271089&sce=0-12-12&rf=2-9
(2)、配置环境变量。计算机→属性→高级系统设置→高级→环境变量a.新建 JAVA_HOME变量。变量值填写jdk的安装目录b.新建JRE_HOME变量。变量值填写jre的安装目录http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/4*KN35XTEn8NamkBes7jqiD6Byytt*S94uuonEO4ByI!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=igGWAQAAAAADADk!&su=0127150513&sce=0-12-12&rf=2-9b.寻找 Path 变量→编辑.在变量值最后输入 %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/amd5NeL9jgAnhYnrw2kgZvfn82fvjWEO.EaiqhMPbvY!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=GwEkAQAAAAADABo!&su=086352481&sce=0-12-12&rf=2-9c.新建 CLASSPATH 变量.变量值填写.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar(注意最前面有一点)http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/Pr3Pugbbcaf6.C1cosKIVLsVqn4k2R2wOXOtEfPb44A!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=OwFFAQAAAAADAFs!&su=0184232481&sce=0-12-12&rf=2-9d.检验是否配置成功 运行cmd 输入 java -version (java 和 -version 之间有空格)若如图所示 显示版本信息 则说明安装和配置成功。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/.9UqRGWw5*PjQ3oEmfz0vWHkCzXLJ8U1HFujFRw*q7I!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=pwEUAQAAAAADAJY!&su=0261812721&sce=0-12-12&rf=2-9
二、安装Tomcat1、软件:tomcat-8.0.28http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/pTkelGquVVN3vb*9YLNQwGaHXUedryz4fjbiM.VY**U!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=KQJQAQAAAAADAF8!&su=0119607089&sce=0-12-12&rf=2-92、安装步骤(1)、解压后即可使用,目录如下图http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/UaRKDhIg6ib2bZr0iCJN99BZ.nkZkk*C.qf.feqZHhI!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=KQJQAQAAAAADAF8!&su=066891489&sce=0-12-12&rf=2-9
(3)、配置环境变量。计算机→属性→高级系统设置→高级→环境变量 a、变量名:CATALINA_HOME 变量值:tomcat所在路径 http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/RN3ZRjYtWFYKbwVWcrJfV0.NgTcnBpuhkgycCmcPeq8!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=SwFVAQAAAAADADs!&su=096537617&sce=0-12-12&rf=2-9(4)、测试安装配置是否成功找到安装路径下的bin 文件夹,找到里面的执行文件,运行,然后执行下面的操作。打开浏览器,输入http://localhost:8080.如果出现下面的内容说明成功了。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/mywEbRt*JdldRL1FsMcmTL2V*2HOlo.D7jUQdFOaZCA!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=sAHIAAAAAAADAFw!&su=059964929&sce=0-12-12&rf=2-9
三、NetBeans开发工具1、软件:NetBeanshttp://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/xHoXoC4FDYKLHxYAy5jJtpz5y8*wRlkPhOaVn2FfV8Y!/b/dGcAAAAAAAAA&ek=1&kp=1&pt=0&bo=8gAVAAAAAAADAMI!&su=0169356033&sce=0-12-12&rf=2-92、安装步骤 Next到底。3、配置环境 工具->选项,激活Maven。 工具->服务器,添加服务器http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/JiHBE0JeWVw*MiHg1qceliVNetgdSEFgKyL1WqPGelU!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=iAEGAQAAAAADAKs!&su=0138214257&sce=0-12-12&rf=2-9
下一步http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/G7YEFTiFw8rgZuCNbDrLWMTweJEk87JZ*xrIn15btD8!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=lwHfAAAAAAADAGw!&su=0190878001&sce=0-12-12&rf=2-9完成。
四、导入JEECG项目1、打开JEECG网站,找到开源项目下载的JEECG网站,http://git.oschina.net/jeecg/jeecg,复制GIT路径。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/n8IN.4hywM70.LZ3twD*cmsPM.SppUTzmpdvmsM4PN4!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=IAEyAAAAAAADADY!&su=050596193&sce=0-12-12&rf=2-9
2、NetBeans 团队开发->GIT->克隆,输入复制后的地址,NetBeans自动开始导入项目。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/wgqtH1xywTvFZmsrglHJWcAxOqKWszoqIOfzQuLnwKo!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=UwHmAAAAAAADAJE!&su=0113742273&sce=0-12-12&rf=2-9
3、导入后选择服务->服务器->添加服务器,没有的话。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/V.WEFljH07M3QNBVUeMJp4HtKZBwAdngrR.YydXF0yI!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=uwDHAAAAAAADAFk!&su=0168022657&sce=0-12-12&rf=2-9http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/dDLap2bPrLHJ2NWrRp2C*SDJgfUxqCbriwz9CHEVWR8!/b/dFcBAAAAAAAA&ek=1&kp=1&pt=0&bo=*gCBAAAAAAADAFo!&su=0186893361&sce=0-12-12&rf=2-9
4、把下面的数据库之类安装且新建JEECG数据库,导入JEECG的DB脚本。然后将项目清理并构建。如有错误用ALT+回车,会提示怎么操作。5、设置运行环境。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/1RMr3YCbu5rPyZhavRgYuZbfeh*yMp7xjpS3JejOhUM!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=KgKXAQAAAAADAJs!&su=053088001&sce=0-12-12&rf=2-96、项目右键选运行。五、navicat(数据库数据查看工具 for mysql)1、软件路径:navicathttp://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/grqs7POhLa.RrFgn*sMIbIbgMr0GFIq6Nc54jgOSIok!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=KQJQAQAAAAADAF8!&su=0171870769&sce=0-12-12&rf=2-92、安装步骤a、双击图中文件,进入安装界面http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/ROUmjFtGgmNXblbS6iJrR7yTtQ7EHQlgGr3uG6866pc!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=KQJQAQAAAAADAF8!&su=091884273&sce=0-12-12&rf=2-9
b、在安装过程点击下一步等待即可http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/.Tt*YjKdBp5GBARGSduYEJICqoS37X0kX1hqkPulJB0!/b/dGcAAAAAAAAA&ek=1&kp=1&pt=0&bo=9wGEAQAAAAADAFY!&su=0264124161&sce=0-12-12&rf=2-9
六、Mysql1、软件路径:mysql5.5.27http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/LOz.QLc5aOYLA*..fMhxsrhn666IC3d.HcQQrvoUmvU!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=KQJQAQAAAAADAF8!&su=0243271793&sce=0-12-12&rf=2-92、安装步骤a、双击图中文件,进入安装界面http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/CHVpJMPow8Dd.96y2jADCAhpysh6miPcYdjp4SLz7cE!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=cgHgAAAAAAADALY!&su=0222500593&sce=0-12-12&rf=2-9http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/o2sFmj013xYiWl8S8ivYGtC0l129p8IV9X201Mku1S8!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=cAEeAQAAAAADAEs!&su=092700033&sce=0-12-12&rf=2-9b、点击Next开始下一步安装。默认是Typical,选择Custom,因为Typical模式不允许改变安装路径,只能安装在C盘http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/n51JhxmE*EKzhvYF20VDsE1e7JPrTvhsYI.CwMUQNh4!/b/dGcAAAAAAAAA&ek=1&kp=1&pt=0&bo=4QF0AQAAAAADALA!&su=022414193&sce=0-12-12&rf=2-9C、在“MySQL Server(MySQL服务器)”上左键单击,选择“This feature, and all subfeatures, will be installed on local hard drive.”,即“此部分,及下属子部分内容,全部安装在本地硬盘上”。点选“Change...”,手动指定安装目录。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/Vf11J7WTnah*PncbR*.d*4Ft5ZqOL8YwBeqSUaBWgf8!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=4AF2AQAAAAADALM!&su=0170730977&sce=0-12-12&rf=2-9http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/jnXpD6KEadGfeB2Gr8jR8jGFA2zsRro0LFRwZ2tvgxs!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=3gFtAQAAAAADAJY!&su=0179009089&sce=0-12-12&rf=2-9d、点击“next”继续,出现如下界面。将“Configure the Mysql Server now”前面的勾打上,点“Finish”结束软件的安装并启动mysql配置向导。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/bMj7SOMVxyRc0OIqI6LblqcoIkc5X5U5gtx.Lbu8ZoM!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=3wF0AQAAAAADAI4!&su=0156318337&sce=0-12-12&rf=2-9
3、配置MySQL Servera、点击“Finsh”,出现如下界面,MySQL Server配置向导启动。 http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/elz53twKf7klSXOzlB0Tv1U.AtHQ0vOnlRIr2jMfrs4!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=4QFxAQAAAAADALU!&su=098605505&sce=0-12-12&rf=2-9b、点击“next”出现如下界面。选择配置方式,“Detailed Configuration(手动精确配置)”、“Standard Configuration(标准配置)”,这里选择“Detailed Configuration”, http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/RD11gbpkMU3ez2ZhUF8EhacaX9.RAR1lGgzFYXhDb7s!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=3QFrAQAAAAADAJM!&su=0166237825&sce=0-12-12&rf=2-9c、选择服务器类型,“Developer Machine(开发测试类,mysql 占用很少资源)”、“Server Machine(服务器类型,mysql占用较多资源)”、“Dedicated MySQL Server Machine(专门的数据库服务器,mysql占用所有可用资源)”,大家根据自己的类型选择了,一般选“Server Machine”http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/AkRqk8gFN6KVgRdS4TRhh9RK7KB3B8sxRdqNYWRXlsk!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=4gFyAQAAAAADALU!&su=020261985&sce=0-12-12&rf=2-9d、选择mysql数据库的大致用途,“Multifunctional Database(通用多功能型,好)”、“Transactional Database Only(服务器类型,专注于事务处理,一般)”、“Non-Transactional Database Only(非事务处理型,较简单,主要做一些监控、记数用,对MyISAM数据类型的支持仅限non-transactional),随自己的用途而选择了,我这里选择“Transactional Database Only”,按“Next”继续。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/ooRKBMSuf51nC6wCxAZIXVGKjahAnEz7XHa7aYFobQw!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=4gFuAQAAAAADAKk!&su=0112961201&sce=0-12-12&rf=2-9e、对InnoDB Tablespace进行配置,就是为InnoDB 数据库文件选择一个存储空间,如果修改了,要记住位置,重装的时候要选择一样的地方,否则可能会造成数据库损坏,当然,对数据库做个备份就没问题了,这里不详述。我这里没有修改,使用默认位置,直接按“Next”继续。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/cEuMbKziaVE7yza1QAcpKcwSzhnyqVUjuXSh.OTS1b8!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=4AFxAQAAAAADALQ!&su=0241374929&sce=0-12-12&rf=2-9e、选择您的网站的一般mysql 访问量,同时连接的数目,“Decision Support(DSS)/OLAP(20个左右)”、“Online Transaction Processing(OLTP)(500个左右)”、“Manual Setting(手动设置,自己输一个数)”,我这里选“Online Transaction Processing(OLTP)”,自己的服务器,应该够用了,按“Next”继续。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/UsuR28VUv2R0dkEOEc3cEiEL37dLMy2060H26Y42TiQ!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=3wFyAQAAAAADAIg!&su=0119356369&sce=0-12-12&rf=2-9f、是否启用TCP/IP连接,设定端口,如果不启用,就只能在自己的机器上访问mysql 数据库了,我这里启用,把前面的勾打上,Port Number:3306,在这个页面上,您还可以选择“启用标准模式”(Enable Strict Mode),这样MySQL就不会允许细小的语法错误。如果您还是个新手,我建议您取消标准模式以减少麻烦。但熟悉MySQL以后,尽量使用标准模式,因为它可以降低有害数据进入数据库的可能性。还有一个关于防火墙的设置“Add firewall exception ……”需要选中,将MYSQL服务的监听端口加为windows防火墙例外,避免防火墙阻断。按“Next”继续。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/JfRUDfZ0arL.MHI15xkHDlWDX5.licXlKnAfiVeUUnc!/b/dAMBAAAAAAAA&ek=1&kp=1&pt=0&bo=3wFvAQAAAAADAJU!&su=047643953&sce=0-12-12&rf=2-9g、对数据库进行编码设置。注意:我们公司一般同意用UTF-8编码。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/s102wTuxMRNKWNQ624pTrhT*DKEUZo*JLZONPBdZHxI!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=3gF0AQAAAAADAI8!&su=06440177&sce=0-12-12&rf=2-9h、选择是否将mysql 安装为windows服务,还可以指定Service Name(服务标识名称),是否将mysql的bin目录加入到Windows PATH(加入后,就可以直接使用bin下的文件,而不用指出目录名,比如连接,“mysql.exe -uusername -ppassword;”就可以了,不用指出mysql.exe的完整地址,很方便),我这里全部打上了勾,Service Name不变。按“Next”继续。http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/PnVFMG1.LqYFAE1Mhv2o.MUmnCOAc5QMe9VkaBmbRtE!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=3wF1AQAAAAADAI8!&su=0230375313&sce=0-12-12&rf=2-9i、这一步询问是否要修改默认root 用户(超级管理)的密码(默认为空),JEECG里面密码是root,“New root password”如果要修改,就在此填入新密码(如果是重装,并且之前已经设置了密码,在这里更改密码可能会出错,请留空,并将“Modify Security Settings”前面的勾去掉,安装配置完成后另行修改密码),“Confirm(再输一遍)”内再填一次,防止输错。“Enable root access from remotemachines(是否允许root 用户在其它的机器上登陆,如果要安全,就不要勾上,如果要方便,就勾上它)”。最后“Create An Anonymous Account(新建一个匿名用户,匿名用户可以连接数据库,不能操作数据,包括查询)”,一般就不用勾了,设置完毕,按“Next”继续。http://a4.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/JaQkhDym764hLra06NW7q2C.9wYcsBCEGM3cMH4tlRM!/b/dAcBAAAAAAAA&ek=1&kp=1&pt=0&bo=3AFrAQAAAAADAJI!&su=0106003697&sce=0-12-12&rf=2-9j、确认设置无误,如果有误,按“Back”返回检查。按“Execute”使设置生效http://a2.qpic.cn/psb?/57fa263a-6cdd-42be-b0c5-e2fade3def60/UGCQQIt56m5Dd0PD3*ySj.rhP6dq*gOc0t1VgZ03rUo!/b/dAUBAAAAAAAA&ek=1&kp=1&pt=0&bo=3QFzAQAAAAADAIs!&su=048429633&sce=0-12-12&rf=2-9
http://user.qzone.qq.com/50282/2
页:
[1]