Linux基础核心经典教程(021)——CentOS安装Eclipse


版权声明

  • 本文原创作者:谷哥的小弟
  • 作者博客地址:http://blog.csdn.net/lfdfhl

概述

之前,我们在CentOS中安装了JDK、Tomcat;接下来,我们在CentOS中安装Eclipse。

安装步骤

在此,详细介绍Eclipse的安装步骤。

第一步:上传Eclipse

使用XFTP将Eclipse压缩包上传至/opt
在这里插入图片描述
在这里插入图片描述

第二步:解压Eclipse压缩包

进入/opt目录将上传的Eclipse压缩包解压。

[root@MyCentOS /]# cd /opt/
[root@MyCentOS opt]# ls -l
总用量 514720
drwxr-xr-x. 9 root root      4096 611 11:12 apache-tomcat-7.0.70
-rw-r--r--. 1 root root   8924465 611 11:08 apache-tomcat-7.0.70.tar.gz
-rw-r--r--. 1 root root 287110893 611 12:48 eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz
-r--r--r--. 1 root root  77493120 610 10:16 firefox-45.0.1-1.el6.centos.x86_64.rpm
drwxr-xr-x. 2 root root      4096 63 22:56 home
drwxr-xr-x. 8 uucp  143      4096 411 2015 jdk1.7.0_79
-rw-r--r--. 1 root root 153512879 611 10:13 jdk-7u79-linux-x64.gz
drwxr-xr-x. 2 root root      4096 326 2015 rh
drwxr-xr-x. 3 root root      4096 63 22:39 temp
[root@MyCentOS opt]# tar -zxvf eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz 

在这里插入图片描述

在这里插入图片描述

第三步:启动并配置Eclipse

进入到解压后的Eclipse文件夹通过./eclipse命令启动Eclipse

[root@MyCentOS /]# cd /opt/eclipse
[root@MyCentOS eclipse]# ls
artifacts.xml  dropins  eclipse.ini  icon.xpm  plugins
configuration  eclipse  features     p2        readme
[root@MyCentOS eclipse]# ./eclipse

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

第四步:创建JavaWeb工程

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

第五步:编写JavaWeb工程代码

在这里插入图片描述

第六步:部署JavaWeb工程

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

第七步:访问JavaWeb工程

请分别在Windows系统和CentOS系统中访问JavaWeb工程的默认主页:
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/lfdfhl/article/details/108570318