首页 \ 问答 \ oracle sql调优工具有哪些 csdn

oracle sql调优工具有哪些 csdn

更新时间:2023-11-13 20:11

最满意答案

java不用做任何改动就可以部署到linux系统,java编译成*.class文件只需要虚拟机的支持,你只要在linux环境下装一个jdk就OK了,然后配置一下环境变量。 然后java的class文件或者打包好的*.jar文件考到linux目录下就可以用了.

其他回答

java程序在开发完成后,需要部署到服务器,如果是web项目,需要部署到web服务器,否则部署到应用服务器。
java是跨平台的编程语言,服务器的操作系统可以是windows、linux或者其它,下面将在redhat6操作系统下,详细说明java程序在web服务器和应用服务器上的部署情况。
1、java程序部署在应用服务器
(1) java程序helloworld 在redhat6上部署的目录结构

bin : 存放shell脚本run.sh
conf :存放配置文件log4j.properties
lib :存放jar包helloworld.jar、log4j-1.2.16.jar
logs:存放程序运行日志文件log.log
(2)编写测试类helloworld.java 并打成jar包helloworld.jar
package com.test;
import org.apache.log4j.logger;
import org.apache.log4j.propertyconfigurator;
public class helloworld {
 private static logger log = logger.getlogger(helloworld.class);

 public static void main(string[] args) {
  try{
   //log4j.properties变量的值在脚本bin/run.sh 中读取
   string config = system.getproperty("log4j.properties");
   if (config != null) {
    propertyconfigurator.configure(config);
   }
   log.info("helloworld");

   thread thread = new thread(){
    public void run(){
     while(true){
      try {
       thread.sleep(5*1000);
       log.info("每隔5秒打印一下日志");
      } catch (interruptedexception e) {
       e.printstacktrace();
       log.error(e.getmessage());
      }
     }
    }
   };
   thread.run();
  } catch (exception e) {
   log.error("[x]启动失败:"+e.getmessage());
   system.exit(1);
  }
 }
}
java当初宣传的时候最牛逼的一句话就是:Write once,run anywhere!
显然不用部署,只要你的Linux环境变量里面有Java就可以了

相关问答

更多
  • 1.putty链接远程服务器你应该会吧? 2.putty主要是命令行操作服务器,做文件传输很不方便。 3.如果做java-web部署,肯定要做文件传输,给你推荐个工具叫winSCP
  • java程序? 是java web吗 无非都是一样的,先安装JDK或者JRE 再配置环境变量 有环境了就可以运行了 如果是java web还要一个应用服务器,例如tomcat
  • 貌似你的java的path路径指定有问题,请看看你的java的path路径是不是指定到了你部署程序所在jar包的位置,我看你的java是从com开始的路径,也就是仅仅是个项目路径,至于当前存放的文件路径好象你没写, 起码你应该写出来类似这样的java路径 /home/project/com/jbsoft...
  • java不用做任何改动就可以部署到linux系统,java编译成*.class文件只需要虚拟机的支持,你只要在linux环境下装一个jdk就OK了,然后配置一下环境变量。 然后java的class文件或者打包好的*.jar文件考到linux目录下就可以用了.
  • Linux系统不是只支持JAVA,只是针对LINUX手机系统而开发的程序极少.大多数都是JAVA程序! 而S40则非智能手机,只支持JAVA! 两者的区别在于JAVA模拟器的开放程度不同! 就是有些要求高权限的JAVA程序在S40里面无法安装,而在LINUX里面,则可以安装!
  • JAVA程序在开发完成后,需要部署到服务器,如果是WEB项目,需要部署到WEB服务器,否则部署到应用服务器。 JAVA是跨平台的编程语言,服务器的操作系统可以是Windows、Linux或者其它,下面将在RedHat6操作系统下,详细说明JAVA程序在WEB服务器和应用服务器上的部署情况。 1、JAVA程序部署在应用服务器 (1) JAVA程序HelloWorld 在Redhat6上部署的目录结构 bin : 存放shell脚本run.sh conf :存放配置文件log4j.properties lib ...
  • java不用做任何改动就可以部署到linux系统,java编译成*.class文件只需要虚拟机的支持,你只要在linux环境下装一个jdk就OK了,然后配置一下环境变量。 然后java的class文件或者打包好的*.jar文件考到linux目录下就可以用了.
  • 你需要Termux, 装好java, 就可以把jar/war扔进去跑了
  • 首先你得先确定安装那个发行版的linux,然后去对应的官网下载就行了,官网直接搜索就知道了

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。