startup

Linux下安装apache-tomcat-7.0.73.tar.gz

匿名 (未验证) 提交于 2019-12-02 21:59:42
Tomca下载地址: http://tomcat.apache.org/download-70.cgi 下载后解压:tar -zxvf apache-tomcat-7.0.73.tar.gz 建立软连接:ln -s apache-tomcat-7.0.73.tar.gz tomcat7 设置目录可执行权限 chmod +x /usr/local/tomcat7 配置环境变量 编辑profile文件:vi /etc/profile 在文件中添加以下代码: export TOMCAT_HOME=/usr/local/tomcat7 export CATALINA_HOME=/usr/local/tomcat7 保存文件退出编辑。 使设置立即生效:source /etc/profile 至此,tomcat已经搭建完毕。 tomcat的相关设置 启动tomcat: ./startup.sh ./home/grid/tomcat7/bin/startup.sh 此时可在浏览器查看 http://localhost:8080 ,如果没有图形界面,则需要打开端口才可访问。 打开防火墙端口命令如下: /etc/rc.d/init.d/iptables save #保存 /etc/init.d/iptables restart #重启防火墙使得立即生效 也可以在/etc/sysconfig

java9启动tomcat9闪退

匿名 (未验证) 提交于 2019-12-02 21:53:52
最近由于Java开发环境由eclipse换成idea,发现了一些很奇特的问题。遂写下来和大家分享下。 开发使用环境为(64位版)idea2017.3月版本+jdk9+tomcat9,发现之前配置好的tomcat不能使用了。 先说方法:将jdk从版本9更换为jdk8。如果有兴趣接着往下看即可。 排错过程如下: 之前eclipse使用的是32为的tomcat7,先将tomcat7换成64位后发现tomcat还不能正常使用,于是将tomcat更换成最新版本tomcat9。发现使用cmd命令启动tomcat安装目录/bin/startup.bat还是无法启动tomcat。 可以右键点击startup.bat,编辑,在文本的最后敲上 pause ,保存后重新运行startup.bat,这时候窗口不会再一闪而过,而是停留在桌面上(调试成功,把pause去掉即可)。 再次打开startup.bat文件会出现如下信息。 首先排除如下问题:tomcat的环境变量配置问题。结论: tomcat的环境变量在运行的时候就自动配上了。(原因在最后)。 接着考虑如下问题:端口问题( 由于没有报错,所以这里不写,仅作提醒 )、环境变量中path,Java的环境变量是不是放在最前面。另外可以在startup.bat文件的第一行后面添加一句话: set JAVA_HOME=[jdk安装目录] D("[ ]"去掉)

CentOS下安装Tomcat7

大憨熊 提交于 2019-12-02 21:42:50
CentOS下安装Tomcat7 1.检查java版本信息 #java -version java version "1.7.0_65" OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) 如果没有则安装,则安装jdk 1.1、( 以下方式强烈不建议 ,因为有时候会缺少jar包,导致tomcat启动不成功): yum -y install java-1.7.0-openjdk 1.2、 强烈建议安装oracle的jdk包 ,此处安装jdk7,到如下网站下载: http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html 下载:jdk-7u79-linux-x64.tar.gz到/tmp 解压:tar xzf jdk-7u79-linux-x64.tar.gz 移动:mv jdk1.7.0_79 /usr/local/java 添加环境变量 vim /etc/profile ,在文件末尾添加: export JAVA_HOME=/usr/local/java export CLASSPATH

Startup script with systemd in Linux

雨燕双飞 提交于 2019-12-02 20:49:22
Can I do This start up service below, there are no errors showing once run, but the server script below does not run! ln /lib/systemd/aquarium.service aquarium.service systemctl daemon-reload systemctl enable aquarium.service systemctl start aquarium.service thanks aquarium.service: [Unit] Description=Start aquarium server [Service] WorkingDirectory=/home/root/python/code/aquarium/ ExecStart=/bin/bash server.* start KillMode=process [Install] WantedBy=multi-user.target here is the server.sh script #!/bin/bash PID="" function get_pid { PID=`pidof python ./udpthread.py` } function stop { get_pid

Run a script on Windows startup without a user logged on

本秂侑毒 提交于 2019-12-02 19:27:50
This is a Windows 2003 machine that gets switched on every morning, but no one logs on until some hours later. I want to use the time in between to run a backup script c:\script\backup.cmd How can I start this unattended after the machine has come up? I tried 2 registry keys, but this resulted in the script being run after a user logs on (which is too late): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices In the end I used Windows TaskScheduler, who has such an option, but I was wondering if there is

Docker on windows 10 can't startup after deleting MobyLinuxVM in Hyper-V manually

淺唱寂寞╮ 提交于 2019-12-02 18:24:23
At first the docker work well on my Windows 10 with official version. Then I deleted the MobyLinuxVM in Hyper-V for some reason. After that the docker can't work. Then I turn off the feature of Hyper-V and uninstall docker(of course the computer was restarted). Then I reinstall the docker and turn on the feature of Hyper-V again. But the docker still can't work. I've tried some solution on the google but the problem still remains. I have checked the MobyLinuxVM's status during the startup of the docker and found the MobyLinuxVM is never created. Can someone knows how to solve? Here is the

Xamarin.Android app only finding launcher activity on clean compile

爱⌒轻易说出口 提交于 2019-12-02 16:21:36
问题 I have an Xamarin.Android with the activity marked as MainLauncher called Login. When I press F5 for first time the app starts ok in the emulator. Then I stop, do some code change, press F5 again I can see the app starting in the emulator and it's UI starting to show when I get this: Java.Lang.RuntimeException: Unable to instantiate activity ComponentInfo{MyApp.MyApp/md5b14ee1c038eed1ee5328e926d768294f.Login}: java.lang.ClassNotFoundException: Didn't find class

Make Swift Cocoa app launch on startup on OS X 10.11

你离开我真会死。 提交于 2019-12-02 15:58:26
I need to write a function that adds my application to Startup items on OS X 10.11. That's what I found at the moment: func applicationIsInStartUpItems() -> Bool { return (itemReferencesInLoginItems().existingReference != nil) } func itemReferencesInLoginItems() -> (existingReference: LSSharedFileListItemRef?, lastReference: LSSharedFileListItemRef?) { if let appUrl : NSURL = NSURL.fileURLWithPath(NSBundle.mainBundle().bundlePath) { let loginItemsRef = LSSharedFileListCreate(nil, kLSSharedFileListSessionLoginItems.takeRetainedValue(), nil).takeRetainedValue() as LSSharedFileListRef? if

Oracle常用命令

喜夏-厌秋 提交于 2019-12-02 11:31:27
一、ORACLE的启动和关闭 1、在单机环境下 要想启动或关闭ORACLE系统必须首先切换到ORACLE用户,如下 su - oracle a、启动ORACLE系统 oracle>svrmgrl SVRMGR>connect internal SVRMGR>startup SVRMGR>quit b、关闭ORACLE系统 oracle>svrmgrl SVRMGR>connect internal SVRMGR>shutdown SVRMGR>quit 启动oracle9i数据库命令: $ sqlplus /nolog SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 13:53:53 2003 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. SQL> connect / as sysdba Connected to an idle instance. SQL> startup^C SQL> startup ORACLE instance started. 2、在双机环境下 要想启动或关闭ORACLE系统必须首先切换到root用户,如下 su - root a、启动ORACLE系统 hareg -y oracle b、关闭ORACLE系统

Why is the startup of an App on linux slower when using shared libs?

北城以北 提交于 2019-12-02 11:16:58
问题 On the embedded device I'm working on, the startup time is an important issue. The whole application consists of several executables that use a set of libraries. Because space in FLASH memory is limited we'd like to use shared libraries. The application workes as usual when compiled and linked with shared libraries and the amount of FLASH memory is reduced as expected. The difference to the version that is linked to static libs is that the startup time of the application is about 20s longer