Commands for Starting and Stopping StreamServer

  1. Start StreamServer. During the startup, StreamServer (a C++ executable program) in the ${MX_SDK_HOME}/bin directory is invoked.
    bash run.sh
    • To enable the HTTPS service, use the certificate import script to import the CA certificate and encrypt the certificate password. For details about how to create a certificate, see Self-signed Certificate Creation Methods. For details about how to import and encrypt a certificate, see Example of Generating and Importing Certificates and Keys. After the certificate is imported and encrypted, run the startup command.
    • Key-related operations are required for enabling the HTTPS service, so ensure that the current user has the permission to read related configuration files, key files, and certificate files.
    • The script execution file is stored in $MX_SDK_HOME/bin/StreamServer.
  2. Stop StreamServer.

    The SIGINT signal is registered for the StreamServer process. Therefore, you can stop the StreamServer process in either of the following ways:

    • Press Ctrl+C in the CLI.
    • Run the kill -SIGINT ${PID} command, where ${PID} indicates the StreamServer process ID. If a process is suspended, restore the process and then run the kill -SIGINT ${PID} command to stop the process.

    The StreamServer inference service is only a component instead of a complete system. It needs to be integrated into your system. You need to control the startup, stop, and restart of the inference service. The StreamServer inference service does not have a restart mechanism, so its restart function is controlled by your system.