Because Tomcat is free, so there are problems, will be good card. If you have a large number of users,
A maintenance friend said that sometimes it will take up more than 1G, although not too understand,
But our servers sometimes die or what, after all, there are a lot of people
Originally is to use the cluster, but the virtual machine ah, the original points are less.
And then my friend said it was a job plan , and then it was all annoying.
Set up a Tomcat timer task
1. The first type of programme
1.1 Control Panel-Task Scheduler-
(1) Create a task, general: Name
(2) Triggers: New Specified time (once, daily, weekly, monthly) set specific time period
(3) Operation: Create a new browse execution file address (here I tested with the Tomcat boot file startup.bat)
1.2 Test
You don't have to wait, you can see the name in the regular form directly on the list.
Right-click to start to see if you can start successfully
I'm not going to do it when I'm testing it, it's black and it's not going to be TOMCAT (it's also drunk)
2. Generate Tomcat Service
A friend says that the second scenario where Tomcat can be built services
On the internet to check the
2.1 into the bin directory under Tomcat
Service Install (Installation service)
Service Uninstall (uninstall service)
This is part of the log (failed)
Username=lijinyu
userprofile=c:\users\lijinyu
vbox_install_path=d:\program files\oracle\virtualbox\
Vs110comntools=d:\program Files (x86) \vs2012\common7\tools\
windir=c:\windows
windows_tracing_flags =3
windows_tracing_logfile=c:\bvtbin\tests\installpackage\csilogfile.log
' pr_displayname ' is not an internal or external command, is not a running program
or a batch file.
Installing the Service ' TOMCAT7 '
... Using Catalina_home: "D:\apache-tomcat-7.0.59"
using catalina_base: "D:\apache-tomcat-7.0.59"
using Java_home: "D:\jdk1.7.0"
using Jre_home: " D:\jdk1.7.0\jre"
using JVM: "d:\ Jdk1.7.0\jre\bin\server\jvm.dll "The
Service ' TOMCAT7 ' has been installed.
So it must be the implementation of installation Services, holding a number of mistakes, but do not understand ah at all regardless of the first.
2.2 Computer-right key (admin)-Services
then actually I have seen the words, there is a TOMCAT7, but I started on the error,
"Windows Tomcat service and reference specific service error code 1"
Query for a half-day Baidu, the basic are
2.2.1 Tomcat Chinese path
2.2.2 A msvcr71.dll under the JDK bin to the Tomcat bin directory
And then there's no warming, and it's not going to work.
In the end, I tried to send another 64-bit tomcat to the server, which was good (32-bit for the original experiment).
here is part of the log (successful)
D:\apache-tomcat-7.0.59\bin>service Install
Installing the service ' TOMCAT7 '
... Using catalina_home: "D:\apache-tomcat-7.
" Using catalina_base: "D:\apache-tomcat-7.
" Using Java_home: "D:\jdk1.7.0"
using Jre_home: " D:\jdk1.7.0\jre"
using JVM: "D:\jdk1.7.0\ Jre\bin the
service ' TOMCAT7 ' has been installed.
3. The service was sent up, and then it was intended to be carried out with the task plan.
But my friend sent me a vbs file, his sister, seemingly my computer is not able to run, the beginning of their own is not know, the last friend said in the CMD Trial command to see the line does not,
NET start Tomcat7 (name of service)
Error: 5 denial of Access
has occurred. Baidu did not know, is its own account does not have administrator rights.
Run-cmd-(right) administrator to run
executes the command, it does start the service
the next step is to see what the VBS server does not do ...