zoukankan      html  css  js  c++  java
  • Linux上部署Java应用+Python3环境搭建

    给了Linux的测试环境,目前需要install JDK, Tomcat,此处记录下小白的操作过程。

    1. 查询Linux发行版本,包括内核信息

    (1) Linux查询内核信息

    $ uname -a

    Linux ECA-LPH000007 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

    $ cat /proc/version

    Linux version 3.10.0-514.6.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Jan 18 13:06:36 UTC 2017

    大概猜出发行版CentOS 7, 64位

    (2) Linux查询发行版

    $ lsb_release -a

    -bash: lsb_release: command not found

    命令不支持

    $ cat /etc/issue

    S
    Kernel on an m

    没有具体版本信息

    $ ls -l /etc | grep release
    $ cat /etc/centos-release

    -rw-r--r--. 1 root root 38 Dec 9 2015 centos-release
    -rw-r--r--. 1 root root 51 Dec 9 2015 centos-release-upstream
    -rw-r--r--. 1 root root 393 Dec 9 2015 os-release
    lrwxrwxrwx. 1 root root 14 Mar 17 2017 redhat-release -> centos-release
    lrwxrwxrwx. 1 root root 14 Mar 17 2017 system-release -> centos-release
    -rw-r--r--. 1 root root 23 Dec 9 2015 system-release-cpe

    CentOS Linux release 7.2.1511 (Core)

    确认CentOS 7, 64位发行版。

    2. 是否安装JDK

    $ java -version

    -bash: java: command not found

    $ which java

    /usr/bin/which: no java in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/xxx/.local/bin:/home/xxx/bin)

    确认无JDK配置。

    之后被告知server上已经装好yum,可以直接使用安装需要的环境,极大简化了JDK的安装过程。

    3. yum安装JDK8

    4. 安装Tomcat9

     参考blog

    5. 安装Python3.7

    参考blog.

  • 相关阅读:
    关于matplotlib绘制直方图偏移的问题
    XP下 无法定位程序输入点WSAPoll于动态链接库ws2_32.dll 的解决办法
    Ubuntu 拨号上网及校园网开启IPV6
    php性能优化
    Mac OS X 10.11.6 重置root密码
    php 接口类与抽象类的实际作用
    Redis Cluster集群的搭建与实践
    nginx 反向代理 取得真实IP和域名
    mysql主从配置,出错
    mycat水平分片规则
  • 原文地址:https://www.cnblogs.com/hello-yz/p/10348302.html
Copyright © 2011-2022 走看看