• centos7 下安装eclipse


    1 在下面路径下载 eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz
    http://eclipse.stu.edu.tw/technology/epp/downloads/release/neon/2/eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz

    2.解压缩文件到 /opt 目录下

    [root@localhost local]# tar -zxvf eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz  -C /opt/

    3 使用符号连接目录

    [root@localhost local]# ln -s /opt/eclipse/eclipse /usr/bin/eclipse

    注意
    符号链接的用法 ln -s 源文件 目标文件 ,-s 是符号的意思(symbolic)软连接
    符号链接是通过创建一个特殊的类型的文件来起作用,它只会在你选定的位置上生成一个文件的镜像,它的功能是为某一个文件在另外一个位置建立一个同步的链 接.当我们需要在不同的目录,用到相同的文件时,我们不需要在每一个需要的目录下都放一个必须相同的文件,我们只要在某个固定的目录,放上该文件,然后在 其它的目录下用ln命令链接(link)它就可以,不必重复的占用磁盘空间。跟windows下的快捷键差不多,这样不用在终端敲指令就可以实现打开软 件。
    如果你用ls察看一个目录时,发现有的文件后面有一个@的符号,那就是一个用ln命令生成的文件,用ls -l命令去察看,就可以看到显示的link的路径了

    命令的意思是,在/usr/bin/eclipse 目录下创建一个同步连接,而源文件在/opt/eclipse/eclipse目录下

    lrwxrwxrwx. 1 root root          20 3月  12 19:00 eclipse -> /opt/eclipse/eclipse

    4 编辑启动eclipse的快捷方式

    vi /usr/share/applications/eclipse.desktop

    5 修改eclipse.ini文件,在开头加上下面内容

    -vm
    /usr/java/jdk1.8.0_121/jre/bin/java

  • 相关阅读:
    LeetCode "Sum Root to Leaf Numbers"
    LeetCode "Single Number"
    POJ #1033
    POJ #1011
    POJ #2411
    POJ #1276
    POJ #1260
    POJ #1221
    POJ #1080
    POJ #1050
  • 原文地址:https://www.cnblogs.com/xhkj/p/6538851.html
Copyright © 2020-2023  润新知