How to start or stop by command line?

Forum / NoMachine for Windows / How to start or stop by command line?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45045
    tinywolf
    Participant

    How can I start or stop the nomachine service by the command line option?
    Can I also set a listen port by the command line?

    #45074
    Tom
    Participant

    Hi Tinywolf,
    I think you’re talking about Windows, but I’ll also give the commands for Linux, just in case

    Windows
    Open the CMD console as administrator and move to the bin folder under the NoMachine installation directory and run:
    e.g.
    C:\Program Files\Nomachine\bin\nxserver --start
    C:\Program Files\Nomachine\bin\nxserver --stop
    C:\Program Files\Nomachine\bin\nxserver --restart

    Linux
    /usr/NX/bin/nxserver --start
    /usr/NX/bin/nxserver --stop
    /usr/NX/bin/nxserver —restart

    The port can be changed by editing the server.cfg file

    Windows
    It is located in the etc directory in the folder where Nomachine was installed
 e.g.
    C:\Program Files\Nomachine\etc\server.cfg
    Key – Port 4000

    Linux
    /usr/NX/etc/server.cfg
    Key – Port 4000

    After changing the port it is necessary to restart NoMachine, use the restart command, examples of which I have given above.

    Ragards,
    Tom

Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.