zoukankan      html  css  js  c++  java
  • Linux 之java开发环境配置

    1.使用ifconfig命令查看linux中网络的配置信息。

    2.开启虚拟网卡


    虚拟网卡的设置

     

    3. 配置虚拟网络编辑器

    4. 使用vi/etc/sysconfig/network-scripts-eth0配置网络信息

     

    5. 重启网络服务

    Service network restart

    6.使用xshell连接虚拟机

    7. 安装jdk

      使用tar -zxcf jdk-7u79-linux-x64.gz解压文件

      重命名该文件夹 mv jdk1.7.0_79 jdk1.7

      配置环境变量  vi/etc/profile

      使用生效命令:source/etc/profile

      使用测试命令:java -version

    8.安装tomcat 

      使用tar -zxvf apache-tomcat-7.0.55.tar.gz 解压

      重命名mv apache-tomcat-7.0.55 tomcat7

      使用cd tomcat7进行tomcat的主目录

      启动tomcat  bin/startup.sh

      在linux中测试:

    再windows中测试:

    可以关闭防火墙或者设置防火墙

    关闭:service iptatbles stop

    启动放火墙:service iptables restart

    配置防火墙:vi/etc/sysconfig/iptables

    重启服务:Service iptables restart

    再Windows下即可访问:

      

    9. 安装 eclipse

      使用tar -zxcf eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz解压

      直接再系统双击即可。

      

      

  • 相关阅读:
    二级JAVA考证笔记
    JAVA异常处理机制
    notepad++安装nppFTP
    nginx conf_ctx ****
    ngx_string()错误分析
    nginx
    char *p[] 和char**的思考
    LeetCode.接雨水
    LeetCode.atoi
    LeetCode.数字转罗马数字
  • 原文地址:https://www.cnblogs.com/forever2h/p/6861200.html
Copyright © 2011-2022 走看看