Every time I start up my pc, the MongoDB database Server automatically starts up on the background by itself.
https://i.stack.imgur.com/Gi4Im.png
Every time I start up my pc, the MongoDB database Server automatically
starts up on the background by itself.
This is because you have installed MongoDB as a Windows service.
You can Stop MongoDB Community Edition as a Windows Service. But, this will be for this session only; and again when you start your PC MongoDB will start again.
You can Remove MongoDB Community Edition as a Windows Service. This will not start the MongoDB when you start the PC. Then you must manually start the MongoDB instance..
First stop the service, then you can disable or remove it.
Stop the service: net stop MongoDB
Disable the service: sc config MongoDB start=disabled
Remove the service: mongod.exe --config <MongoDB configuration file> --remove or sc.exe delete MongoDB
Or you can do all these steps also with your mouse in the Services console.
Related
I have my spring boot web service program, I use winsw to wrap it into windows service to my server.
However something is strange, deployment was fine (installed it using my account which have admin access) at day 1, and I can see all the log for my web service transaction. But once on day 2, in service.msc window (running by administrate mode, and my account have admin access), the status for my web service was not running and if I try to start it again it failed due to org.springframework.boot.web.server.PortInUseException: Port 443 is already in use (Yes, my web service is using port 443).
But my web service was running fine, all the transaction that return response, exccept I cannot see any logs that suppose written into the file. That makes me every day that if I want to see the logs or deployment the new version to the server, first I need to use netstat -a -o to find the PID for my process, then use taskkill /PID [PID] /F to kill the process then I can do my new version deployment or run the transaction again to see today's log.
Is it something I forgot to configuration?
Platform: Windows Server 2016
I have a server running weblogic 12.2.1.3. Runs great. I have another server that only has oracle DB 19c installed and on that server there are some scripts that refresh the DB from a backup weekly. I'd like to modify db scripts on the DB server to use WLST and remotely reach over to the weblogic server and stop a managed server and start it again later in the script.
What do I need to install on the DB server to run WLST?
You have 3 solutions :
Install WLS on your DB machine
Copy WLS java libs required by WLST. For instance with 12.1.3 :
$ORACLE_HOME/wlserver/modules/features/weblogic.server.merged.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-wls_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.comdev_7.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.service-table_1.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.dependency_1.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-wls-schema_12.1.3.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-security_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-owsm_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.wizard_7.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.encryption_2.1.0.0.jar
$ORACLE_HOME/wlserver/modules/com.oracle.css.weblogic.security.wls_7.1.0.0.jar
$ORACLE_HOME/wlserver/modules/com.oracle.css.common.security.api_7.1.0.0.jar $ORACLE_HOME/wlserver/modules/com.oracle.css.weblogic.security_7.1.0.0.jar
Use WLS REST Management API to start/stop your managed servers from your DB machine. From my point of view it is the best solution. Read this documentation for details.
I am trying to add mongoDB service on windows startup but still I am not able to do it.
Every time i have to start mongoDB service manually.
I have looked into how to add application on startup in windows but it only starts application not service like this
So can you help me to find solution to add mongoDB service to startup in windows so it can automatically starts? Thanks in advance.
In windows Control Panel\All Control Panel Items\Administrative Tools\Services you can find the MongoDB Database Server service and change it's Startup Type to Automatic.
If no MongoDB Database Server service is listed in the services, you need to install it as MongoDB as a Windows service as described here.
You can check if the MongoDB Server is enabled on the windows services list. You can verify by opening the Run application Windows Key + R and execute the command msconfig. This will open a window, where you can navigate to services and verify if the MongoDB Server box is enabled.
.
We have installed WAS Liberty Core 8.5.5 to run Maximo anywhere mobile applications.
If we start the server from CMD then we are able to access worklight console and maximo anywhere apps.
Command we are using to start the server.
server start server1
But once we closed the CMD window the server stops automatically.
Any workaround to run the server as a background Service ?
Also we need info on how to add WAS Liberty server to Windows startup service so that it will start automatically on system restart.
Thanks,
Ajay
You can run Liberty as a Windows service:
https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_setup_new_server_winserv.html
bin\server registerWinService serverName
bin\server startWinService serverName
bin\server stopWinService serverName
Of course "net stop/net start" or services.msc can be used instead of startWinService/stopWinService
The feature to setup a proper windows service is not available in Websphere Liberty 8.5.5.x.
You can use sc.exe to create a service linked to the server executable, but it won't behave correctly i.e. it won't respond correctly to the commands from the services application. As an example, you will be able to start the service and the server will run, but then you will see an error saying the service did not respond in a timely fashion.
According to this question the proper functionality, as described in the other answer, only became available around version 17.0.0.1.
Hope that helps,
John
I am developing a Windows desktop app that connects to a Postgres database. When testing connections and environmental variables, I have been just going to Component Services and restarting the Postgres service. Does that reload pg_env.bat? What is the command prompt way of restarting the Postgres server and reloading a revised pg_env.bat? Thank you.