How to start tomcat service automatically on windows server? - windows

I want to start the tomcat service automatically before user login,but I can not modify the settings in the services.msc. what can I do ?

If you've installed Tomcat as a service, you can configure it to start automatically when the computer boots:
Start > Settings > Control Panel > Administrative Tools > Services (for open service)
then right Click "Apache Tomcat" > Properties
then Set "Startup Type" to Automatic
Now click Start or restart your pc

You must login as administrator to change items in services.msc . This is a tutorial about this: How to Log in as an Administrator on Windows 7

Related

How to kill svchost.exe process permanently in Windows Server 2008

I have AWS we ec2 server, where the process svchost.exe is consuming heavy memory.
I would like to kill the process permanently. How to do that?
svchost.exe is a generic service host process. Identify the actual hosted service that consumes the memory and take appropriate action depending on the service in question.
To view which services are currently running under svchost.exe
Open Task Manager by right-clicking the taskbar, and then clicking Start Task Manager.
Click the Processes tab.
Click Show processes from all users. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Right-click an instance of svchost.exe, and then click Go to Service(s). The services associated with the process are highlighted on the Services tab.
Type 'resource monitor' in search box of start menu.
Go under CPU tab.
Then expand processes.
There you see lots of processes,check all svchost.exe processes.
Then expand services,now it filtered by above checked processes.
Now you have to stop all services (one by one) in services section by righting then and select stop service.
That all we can try to stop svchost.exe.
Hope it was helpful
Follow these steps and stop this service pemanately
1.Windows+R
2.type services.msc
3.search superfetch in list
4.click it stop
5.right click and go to settings
5.make it disabled instead of automatic
Done reboot.

Disable cmd and PowerShell on Windows Server 2012 for clients

I'm using Windows Server 2012, and I want to disable the cmd and the PowerShell for the clients. I've searched in the Group Policies but i didn't find where I can do this. Please can somebody help me?
Disable access to powershell:
In the Group Policy window for those users, on the left-hand side, scroll down to User Configuration > Administrative Templates > System > Don’t run specified Windows applications.
In the properties window that opens, click the “Enabled” option and then click the “Show” button.
In the “Show Contents” window add --> powershell.exe
User Cfg - Admin Templates - System - Prevent access to the command prompt
Prevents users from running the interactive command prompt, Cmd.exe. This setting also determines whether batch files (.cmd and .bat) can run on the computer.
If you enable this setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action.
Note: Do not prevent the computer from running batch files if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services.
I have no idea about powershell anything.

How to prevent oracle database to start when windows boots up?

I installed Oracle database 11g r2 express in my windows machine. But, whenever I start windows, Oracle gets started and I have to stop the database. How can I prevent it from starting at the start up of windows? i tried to find out it in startup application lists, but it is not there.
I am currently using windows 8.1.
Thank you.
Go to Control Panel, Administrative Tools, then Services.
Look for a Service called OracleServiceXE. It should have "Automatic" Startup Type. Change it to Manual or Disabled by right-clicking it and then choosing Properties.
Works for me on Windows XP and 7. I don't have a Windows 8 machine, but it should be the same steps.
I think the solution provided here is useful:
https://dba.stackexchange.com/questions/62699/revised-question-how-do-i-prevent-oracle-12c-database-from-starting-on-machine
You have two solutions:
1- In Windows OS's in the run, type services.msc and Enter, from the list of services find OracleService and right click and choose Properties. In the General tab in the Startup, Type section choose Manual and click OK and exit. From now on your database doesn't start automatically by your machine's start, but whenever you want to start it you have to go to services.msc and start it manually. You can also do this from Windows Task Manager(from Services tab).
2- Let the Startup Type to be automatic in "services.msc". Open the Windows command prompt (Admin) and type this statement (instead of ORCL use your SID name).
oradim -edit -sid ORCL -startmode manual
Now your database is in a state that idiomatically called idle. You can start your database by logging to SQL*Plus with sysdba privilege and then type startup command.
In Oracle 12c or higher just go to Windows Registry
HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > KEY_OraDB19Home1 > ORA_ < SID > _AUTOSTART
Change the parameter from TRUE to FALSE

windows remote desktop can't connect even if the firewall is off

I am trying to let my pc, which run at win7, accessible remotely, but I am able to. I did the following:
checking "Allow Remote assistance connection to this computer.
a set a password for my account.
I setup the port forwarding on my router.
set my remote desktop communction program feild in my firewall,
ZonAlarm, to allow for everything.
yet it does not connect to my laptop remotely.
I even tried to see if I can connect to the same laptop from itself - usually it connects and try to load the windows but then fail loading. however even this test fail -
I have no other idea.
Any tips?
Running Windows 7 / Service pack 1
Make sure account has a password and you can ping the host
Start Button → (Right Click Computer) → Properties
Select Remote Settings on left of window
(if not selected) Select Remote tab
Select Option "Allow connections… running any version…"
Select OK
Restart Host (Sometime not necessary but to be sure)
Try to connect
If above fails Start Task Mgr (Start Button → cmd → TaskMgr) or (ctrl-alt-del)
Select Services Tab
Look for "TermService"
Right Click TermService and select start
If Access Denied Error
On Services Window Select Services Button (Bottom Right)
Find "Remote Desktop Services" Right Click select Properties
Set Startup type to "Automatic"
Right Click "Remote Desktop Services" select Start
I think you are forgetting something,
1.Set password for the account.
2.Check "Allow Remote assistance connection to this computer.
3.System properties>Remote>Remote Desktop>Select "Allow connections from computer running any version of remote Desktop"
4.open port 3389(default RDP port)
If you changed username of the account be aware that only name that's being displayed in windows changed.
run netplwiz and just change account name in there - it should work fine.
Posting it here in case someone runs in same problem in the future.
I fixed it by adding a user to the 'Select Users' list in Remote in system properties

How to start apache2.4 service as administrator

I am trying make ODBC connection using Xampp.
When i run apache2.4 as service it runs with local user credentials and it shows access denied error. But when i run Xampp as admin and start it manually it works fine. So my question is how do i run apache2.4 service as administrator. P.S. I am using Windows 7.
Bring up the Services (services.msc) application. Find the Apache service and double click it.
Click "Log On" tab and click "This account:" and enter the credentials for your Administrator account.
Alternatively
Do the above but rather than the "Log On" tab, grab the Path to the executable: and navigate to its folder using Windows Explorer and right-click on the executable and click Properties and click Compatibility.
Make sure "Run this program as an administrator" is ticked and click OK.
You should be good to go!

Resources