首页 \ 问答 \ Java守护进程一步一步(Java Daemon step by step)

Java守护进程一步一步(Java Daemon step by step)

几乎完成了我的java web应用程序。 一切正常。 下一步是什么。 我现在需要编写一些在后台运行的过程来处理一些常规的manteinance并定期发送一些推文。 从谷歌你可以发现守护进程是正确的方式。

谁能指导我一步一步如何实现这一目标? 1-编写程序。 2-然后在linux环境中运行它。 (如果我以用户身份注销,请保持运行。正如Tomcat所做的那样)。 3-如果可能的话,无论我是否登录,都要在linux启动时启动它。 一个好的教程的URL将有很多帮助。

坏消息是我的开发环境是我的Windows笔记本,我的生产环境是Ubunto(不确定我是否可以在Windows中测试守护程序线程)。

好消息是我家里的生产服务器距离我写的地方4米处:)

非常感谢你提前。


Almost finished my java web app. All working fine. Whats next. I need now to write some kind of process that runs in back ground to take care of some regular manteinance and send some tweets in a regular basis. From google you can find out that Daemon is the right way.

Can anyone guide me step by step how to accomplish this? 1- Writing the program. 2- And then put it into run in a linux enviroment. (Keeping it runing if i logoff as user. As Tomcat does). 3- If possible start it at linux starts regardless i logon or not. A URL to a good tutorial will help a lot.

Bad news is that my development enviroment is my windows notebook and my production enviroment is Ubunto (Not sure if i can test daemon threads in windows).

Good news is that have the production server in my house at 4 meters from where i am writing this:)

Thank you very much in advance.


原文:https://stackoverflow.com/questions/11041912
更新时间:2023-05-05 09:05

最满意答案

二楼的,
是选中A1   CTRL+F3 
名称框输: A
引用位置输:=evaluate(sheet1!$A1)
确定

在B1输入公式:=A
B列公式可以下拉

其他回答

单击菜单“工具”——》“选项”——》“1-2-3的帮助”选项卡:勾选“转换Lotus 1-2-3表达式”和“转换Lotus 1-2-3公式”复选框即可。
选c1单元格,插入——名称——定义,定义名称“jg”为“=evaluate(sheet1!$a1)”,按“确定”关闭对话框,在c1工作表输入“=jg”,向下填充。
选择B1单元格,按Ctrl+F3,“自定义名称”,
名称:乘积
数据来源:=EVALUATE(!A1)  确定,完成定义名称;
然后在B1单元格输入以下公式,并向下填充公式
=乘积
选中B1单元格:
1:按CRTL+F3  或者(菜单是:插入菜单->名称->定义)
2:名称位置输入 x 
3:下面的引用位置里填:=IF(A1="","",EVALUATE(A1))
4: 点“添加”
5:在B1单元格输入 =x

6:复制柄 往下拉,复制就是了。

以后只要在A列输入算式,B列就会自动显示其结果。

相关问答

更多
  • 1.java操作excel的第三方开源包很多,比如poi,javaExcel,OpenXls等; 2.你可以下载上述的某个包,然后直接看它的API就ok了,直接改变单元格内容是最基础的方法,很容易的。 希望对你有所帮助~~
  • 是要得到行号吗?可以用通配符查找 比如单位名称在C列,在A1输入飞虹, 可以在B1输入公式 =MATCH("*"&A1&"*",C:C,0) 或者 =MATCH("*飞虹*",C:C,0)
  • 1、下拉列表选择数据 我们可以使用“数据→有效性”来进行处理。具体操作方法为:先选中要输入性别的单元格,比如C4:C50,选择菜单“数据→有效性”命令,打开“数据有效性”对话框,单击“设置”选项卡的“允许”下拉箭头,在弹出的菜单中选择“序列”项,然后在“来源”框中输入“男,女”,注意其中的逗号是在英文状态下输入的。单击“确定”即可。 效果见下图: 2、条件选择输入(根据A输入的内容,决定B可以输入的内容) 下图中有两个工作表,其中Sheet1用来采集客户资料,并将其名称改为“客户数据采集”,在Sheet2的 ...
  • 看我的: 1.在你认为长的那一列(如B列)的右边插入一空白列(C列) 2.在B列中的第一行单元格如(B1)右边的(C1)中输入"=LEFT(B1,3)",注意双引号不要输进去呵!然后回车即可! 3.把C1里的函数应用往下拖(把鼠标放在C1单元格的右下角往下拖),B列中有多少数据你就拖多下去即可! 4.最后把B列中的原数据删掉(用删除列就OK) 5.完成了! 还不懂就发邮件给我吧!GZYOULI@GMAIL.COM
  • 单元格数据有效性设置为自定义,下框填写如下公式 =or(len(a1)=15,len(a1)=18) 其中a1是代表你需要设置的单元格。 希望能够帮到你!
  • 你先把第一个单元格尽量拉大一点,再插入一个自选图形里面的长方型,把长方型拖到第一个单元格里面,靠到最左上角,再设置大小为你要的单元格大小,再把单元格拉到和长方型一样大就OK了. excel的长度单位是像素,不是CM
  • 二楼的, 是选中A1 CTRL+F3 名称框输: A 引用位置输:=evaluate(sheet1!$A1) 确定 在B1输入公式:=A B列公式可以下拉
  • 这个真的不好实现,你可以在excel里面同一个文件的另一个表单(sheet2)做报告模版,,然后在sheet1里输入,sheet2里自动生成报告。这个很容易实现。
  • 没有任何代码可以阅读,我猜你正在读一个显示字符串或类似的,每次行宽变化时Excel将更新。 您可能需要阅读更原始的价值。 Without having any code to read I would guess that you are reading a display string or similar, which Excel will update each time the row width varies. You probably need to be reading a more raw ...
  • 您可以在VBA中使用IIF功能。 它类似于Excel IF [c1] = IIf([a1] = [b1], "Yes", "No") You can use the IIF function in VBA. It is similar to the Excel IF [c1] = IIf([a1] = [b1], "Yes", "No")

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。