How to Run monerod Installed as a Service with Custom Path on Windows Server 2016
Run monerod Windows Server 2016 Install Service with Custom Path
Running on a Windows server it may be preferable to store the monero database on a faster drive - moving it off the operating system drive. To run as a service you'll need to specify the new disk location but this is not simple to specify in the service.
- Create your new disk and assign drive letter - formatted as ReFS with 64k cluster size.
- Stop the monerod daemon
- Copy files from c:\programdata\bitmonero to the new location d:\bitmonero - no spaces in the folder path
- Rename the old folder c:\programdata\bitmonero - for safety
- Create a symbolic link from the original default path to the new location.
Open Administrative cmd.exe
mklink /D "C:\ProgramData\bitmonero" "d:\monerodir"
Now install the service
- Open Administrative cmd.exe
- CD to the monerod.exe program folder
- Run monerod --install-service (this took a few minutes to install)
- Open Services.Msc - set service to automatic and click start
- Now open Monero Gui and you should see the Daemon running
- Confirm the database logfile is updating in the new location
Job done - happy mining
Comments
Post a Comment