the previous command is as follows:
mongod --logpath C:\mydatabase\logs.txt --logappend --dbpath C:\mydatabase --serviceName MongoDB --install
however, there is no prompt on the command line after entering the carriage enter, and the service has not been added successfully.
I have tried some methods on the Internet that do not work. Is there a correct one available?