标签: startup

如何将 Tomcat 配置为在 Tomcat 启动时不自动启动某些应用程序?

我有一个 Web 应用程序部署到 Tomcat 的一个实例中。我希望能够将 tomcat 配置为在 Tomcat 本身启动时不自动启动该应用程序。但是,我确实希望启动 Tomcat 管理器,以便根据需要我可以手动启动和停止 Web 应用程序。

我如何说服 Tomcat 以这种方式工作?

tomcat startup

5
推荐指数
1
解决办法
2075
查看次数

什么处理动态:// URL?

我正在尝试创建自己的自定义深入分析功能,其中URL dynamics://0?myfunction_123456将启动我自己的代码.

C\SysStartupCmd\construct,这个基本代码:

    case 'viewalert':
        sysStartupCmd = new SysStartUpCmdViewAlert(s,parm);
        break;
    case 'drilldown':
        sysStartupCmd = new SysStartUpCmdDrillDown(s,parm);
        break;
    case 'viewalertrule':
        sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm);
        break;
Run Code Online (Sandbox Code Playgroud)

我已经测试了,所有这些都被这些网址解雇了:

  • 动态:// 0/DrillDown_382576
  • 动态:// 0/ViewAlert_382576
  • 动态:// 0/ViewAlertRule_382576

但是,如果我添加自己的案例,让所有其他代码保持不变,我就无法获取要触发的URL:

    case 'myFunction':
        sysStartupCmd = new SysStartUpCmdDrillDown(s,parm);
        break;
Run Code Online (Sandbox Code Playgroud)

我在整个系统中进行了挖掘,并且无法弄清楚是什么导致dynamics://URL只针对这三种情况触发.有注册表项还是什么?我发现C\EventDrillDownPoller哪个似乎创建了一个PipeServer来处理传入的内容?

startup x++ axapta dynamics-ax-2009

5
推荐指数
2
解决办法
3152
查看次数

Google Compute Engine 启动脚本:启动时未运行

我试图在 GCE 上启动时让以下脚本在 CentOS 实例上运行。我在实例名称上设置了自定义元数据“启动脚本”,并将以下脚本作为值。

该脚本不会在启动、重启或运行 /usr/share/google/run-startup-scripts 时执行,但如果我在实例上本地创建它并在那里执行,则会执行

我错过了什么明显的东西?

#! /bin/bash
# Installs apache and a custom homepage
# 1234567 123456

#Get this servers name from the metadata server and use the header to authenticate
THIS_SERVER_NAME=$(curl http://metadata/computeMetadata/v1/instance/hostname -H "X-Google-Metadata-Request: True")
#Turn off IPtables firewall that comes installed
service iptables stop
#Install apache
yum install -y httpd
#start apache
service httpd start
#create custom default homepage for this server
cat <<EOF > /var/www/html/index.html
<html><body><h1>Hello World</h1>
<p>This is Server: $THIS_SERVER_NAME</p>
</body></html>
EOF
Run Code Online (Sandbox Code Playgroud)

startup google-compute-engine

5
推荐指数
1
解决办法
3462
查看次数

如何在Emacs启动时显示自定义议程视图?

我有

(add-hook 'after-init-hook 'org-agenda)
Run Code Online (Sandbox Code Playgroud)

在我的init文件中.这将显示议程调度程序.我怎么能够

  1. 自动显示自定义视图(快捷键"w")
  2. 确保议程视图是唯一的窗口,第二个窗口中没有*scratch*缓冲区?

emacs startup org-mode

5
推荐指数
1
解决办法
1151
查看次数

保持活动进程的标准或最佳方法由init.d启动

我正在寻找一种标准方法或最佳实践来保持init.dshell脚本活动启动的守护进程.

或者甚至更好,有没有办法让它直接保持活力/etc/init.d

具体来说,我有一个dtnd带有无限循环的守护进程,它寻找向下进动,如果有的话,守护进程再次唤醒它们.此外,我使用该start-stop-daemon工具,以便从给定的系统用户运行进程.

我想dtnd从启动时运行这个守护进程.为了实现这种行为,我创建了一个init.d脚本,它dtnd使用start,stop和status命令"包装" 文件.

我有2个问题需要解决:

  1. 有没有办法从init.d shell脚本实现一些进程.是标准/最佳方式练习吗?

  2. 建议让守护进程无限循环?我想最好使用像守护进程这样的工具来实现这一点.这是正确的?

非常感谢您的参与!

linux shell daemon startup init.d

5
推荐指数
1
解决办法
1145
查看次数

Windows GCE 上的启动脚本 - 它记录在哪里?

我想知道 Google 为 GCE 提​​供的 MS Windows 图像上的启动脚本日志记录发生在哪里(如果它自动进行)。该文档非常清楚地介绍了 Linux 映像的日志记录,但没有说明 Windows 的任何内容。

提前致谢!

-本

windows startup google-compute-engine google-cloud-platform

5
推荐指数
1
解决办法
1617
查看次数

启动时应用程序崩溃

我的应用程序运行得非常好,突然之间我现在也开始使用iOS 8和以前的操作系统.

崩溃日志如下所示:

iPhone kernel[0] <Notice>: xpcproxy[566] Container: /private/var/mobile/Containers/Data/Application/xxxxxx-xxxx-xxxxx-xxxxxxxx (sandbox)

iPhone ReportCrash[567] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

iPhone ReportCrash[567] <Notice>: ReportCrash acting against PID 566

iPhone ReportCrash[567] <Notice>: Formulating crash report for process app_name[566]

iPhone locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.xxxxx[0xc36c][566]) <Notice>: Service exited due to signal: Trace/BPT trap: 5

iPhone SpringBoard[43] <Warning>: Application 'UIKitApplication:com.xxxxx[0xc36c]' crashed.

iPhone assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x16624ab0; com.xxxxx; pid: …

iphone crash startup ios ios8

5
推荐指数
1
解决办法
7499
查看次数

如何在 xterm 启动时运行命令?

如何在 xterm 启动时运行命令,即当 xterm 终端启动时命令已经执行?

我已经编辑了 .bashrc 文件以添加这一行:

xterm "ls"

但这不起作用。

请建议我该怎么做才能实现这一目标。

谢谢。

startup xterm

5
推荐指数
1
解决办法
1万
查看次数

如何自动添加Jupyter(ipython)笔记本?

我已安装扩展程序'calico-document-tools',我可以使用以下命令从Jupyter笔记本中加载它:

%%javascript
IPython.load_extensions('calico-document-tools');
Run Code Online (Sandbox Code Playgroud)

如何为每个打开的笔记本自动加载?

我尝试添加IPython.load_extensions('calico-document-tools');IPython.load_extensions('C:/Users/<username>/.ipython/nbextensions/calico-document-tools');C:\Users\<username>\.ipython\profile_default\static\custom\custom.js,但它不工作(扩展名应显示在工具栏上的一些按钮).

我只有一个配置文件,使用ipython profile createPython 3.3,Windows 7 创建.提前感谢.

python startup ipython ipython-notebook jupyter

5
推荐指数
1
解决办法
3256
查看次数

R启动时如何覆盖2GB内存限制

当R启动时,无论计算机上的可用内存如何,内存限制(由mem​​ory.limit返回)都设置为2GB.(我最近发现了).我想在启动过程中的某个时刻,此限制被设置为实际可用的内存.

这可以通过memory.limit()在启动时获取的.Rprofile文件中打印来查看.它打印"2047".另一方面,当R启动并输入memory.limit()控制台时,我得到"16289".

我使用自定义.Rprofile文件,我需要在启动时访问超过2GB.

如何覆盖此限制?

我目前的解决方法是在.Rprofile中使用设置限制,memory.limit(size=16289)但是每次我在具有不同RAM量的计算机上工作时我都必须编辑它.

有没有我可以更改的选项,我可以编辑的.ini文件,或者我可以做些什么呢?

OS和R版本:

> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Run Code Online (Sandbox Code Playgroud)

编辑:这不是重复,至少不是建议问题的重复.它不是关于管理可用内存!我有16GB的内存,并memory.limit()显示我的限制确实是16GB.

这一切都始于我收到"已达到2GB内存分配"的警告(暗示我有2GB内存限制).经过调查,看来R确实在启动过程中将内存限制在2GB.

我想在R启动时自动加载我的数据,为此我在.Rprofile中有一个小的加载脚本.我加载超过2GB的数据因此我需要访问我的16GB.我的问题是关于实现这一点.这有什么共同之处所提出的重复,除了关键字...

memory r startup

5
推荐指数
1
解决办法
518
查看次数