Restarting Server by IIS Manager - iis

I have removed a Role from Server Manager Console and after that it is aking for restarting the server. Can i restart the server by IIS Manager (Restart action) after removing a role from Server Manager of the same server?
Please advise.

You can't restart the machine from iis manager, you can obviously restart the webserver from the GUI.
Of course if you have an elevated CLI you can do either:
iisreset
Or
shutdown -r -t 60

Related

While doing a restore backup with appcmd, iis crashed and cannot be fixed

My IIS was crashed - Services are not starting due to the following changes done by me in the IIS due to unaware of version migration.
I have taken the back of IIS 7.5 from Windows Server 2008 R2 using the below command
%windir%\system32\inetsrv\appcmd.exe add backup "mySite20210818"
and restored the backup in IIS 8.5 in Windows server 2019 using the below command
%windir%\system32\inetsrv\appcmd.exe restore backup "mySite20210818"
Due to the above changes the IIS is not working and also i could able to start the IIS service itself...i tried to remove the role and then added the role still its not working..
When restoring, why doesn't it say not to install version incompatible, I have to install windows server 2019 again?
Please suggest solution. I will not use appcmd backup again.
what i tried
I copied the files from "C:\inetpub\history\CFGHISTORY_0000000001" into "%windir%\system32\inetsrv\Config".
iisreset /stop
iisreset /start
iisreset /start
The IIS Management Service or the World Wide Web Publishing Service or a dependent service failed to start. The service or dependent services may have encountered an error or been disabled during startup.
iisreset /status
Status: IIS Management Service ( IISADMIN ): Stopped
Status: Windows Process Activation Service (WAS): Stopped
Status: Net.Pipe Listener Adapter ( NetPipeActivator ): Stopped
Status: Net.Tcp Listener Adapter ( NetTcpActivator ): Stopped
Status: World Wide Web Publishing Service ( W3SVC ): Stopped
Removed iis from roles and reinstalled. But it doesn't come off completely.
Regards

Node Server not Accessible Using PM2 on Windows Server

Using pm2 on Windows Server the Node server is not accessible but if I restart using pm2 restart server.js it does become accessible.
I am using pm2-windows-startup to start the server on system boot.
If I run pm2 status after reboot it shows it is running but the service is not available until I run pm2 restart server.js.
Not really a Windows expert... I've already allowed exceptions in the firewall, etc. Any idea on what else could be the problem?

Deluge Windows Service

I am trying to run the DelugeD.exe as a windows service. After installing Deluge and creating the services using NSSM, I try to start the service and get the following error:
Windows could not start the Deluged service on Local Computer. The service did not return an error. This could be and internal Windows error or and internal service error. If the problem persists, contact your system administrator.
I have created the Deluge-web-debug.exe as a Windows Service and it successfully starts. When I browse to http://localhost:8112 the web client appears, however the Connection Manager shows the Deluged daemon has not started.
No error, no logs, what could be the cause?
Thanks!
I thought I would start from scratch, reinstall deluge for windows, and try again. After this it still failed.
Using nssm, the error was:
deluged: Unexpected status SERVICE_PAUSED in response to START control.
This placed the service in a perpetual Paused state.
Finally, I decided to tear down the services using nssm remove, kill any running deluge processes, then delete the Config folder where deluged was pointing.
I am certain deleting the Config folder and all files was what solved the problem, and now it starts successfully.
I think I just solved this one by checking the "Allow service to interact with desktop" box under the LogOn tab for both the Deluge daemon and the WebUI services I created with nssm:
"Allow service to interact with desktop" in services.msc

Create service tomcat - Start and Shutdown

I installed the apache tomcat but to start the service, i have to go to the path $HOME/apache-tomcat-8.0.28/bin and run the script ./startup.sh to start and ./shutdown.sh to shutdown. How can I make like
service tomcat start
service tomcat stop
or another way for not need to go to the path of the tomcat on Ubuntu?
/etc/init.d/tomcat stop
/etc/init.d/tomcat start

Shutdown Cassandra server and then restart it in windows 7

I installed single node cluster in my local dev box which is running Windows 7 and it was working fine. Due to some reason, I need to restart my desktop and then after that whenever I am doing like this on the command prompt, it always gives me the below exception-
S:\Apache Cassandra\apache-cassandra-1.2.3\bin>cassandra -f
Starting Cassandra Server
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
Meaning port being used somewhere. I have made some changes in cassandra.yaml file so I need to shutdown the Cassandra server and then restart it again.
Can anybody help me with this?
Thanks for the help.
in windows7, with apache cassandra, a pid.txt file gets created at the root folder of cassandra. Give following instruction to stop the server:
d:/cassandra/bin> stop-server -p ../pid.txt -f
Running -f starts the server as a service, you can stop it through the task manager.
It sounds like your Cassandra server starts on it's own as a service in the background when your machine boots. You can configure windows startup services. To run cassandra in the foreground on windows simply use:
> cassandra.bat
If your are using Cassandra bundled with DataStax Community Edition and running as a service on startup of your machine then you can execute following commands to start and stop Cassandra server.
Start command prompt with admin rights
run following commands
net start DataStax_Cassandra_Community_Server
net stop DataStax_Cassandra_Community_Server

Resources