SSH Information

Important SSH Linux Commands #

Obtain the status of a service:

sudo /opt/bitnami/ctlscript.sh status

Call it without any service name arguments to start all services:

sudo /opt/bitnami/ctlscript.sh start

Or use it to restart a single service, such as Apache only, bypassing the service name as an argument:

sudo /opt/bitnami/ctlscript.sh restart apache

Use this script to stop all services:

sudo /opt/bitnami/ctlscript.sh stop

Restart the services by running the script without any arguments:

sudo /opt/bitnami/ctlscript.sh restart

Check Service Status With Gonit #

With Gonit, system status can be viewed directly from the command line. It monitors processes, program files, directories, and filesystems of each service/component included in your stack.

To check which services are included in your stack, the main files, processes, and status, run the sudo gonit status command. You should see output similar to this:

[email protected]:~$ sudo gonit status
Uptime                         409h50m59s
Last Check                     2021-10-22 03:37:13.656626949 +0000 UTC m=+1475401.548829095
Next Check                     2021-10-22 03:39:13.656626949 +0000 UTC m=+1475521.548829095
Pid                            3540
Pid File                       /var/run/gonit.pid
Control File                   /etc/gonit/gonitrc
Socket File                    /var/run/gonit.sock
Log File                       /var/log/gonit.log
Process 'apache'
  status                                        Running
  pid                                               840
  uptime                                     409h50m59s
  monitoring status                           monitored
Process 'mariadb'
  status                                        Running
  pid                                              3466
  uptime                                     409h50m59s
  monitoring status                           monitored
Process 'php-fpm'
  status                                        Running
  pid                                               677
  uptime                                     409h50m59s
  monitoring status                           monitored

Use sudo gonit to check the Gonit status:

[email protected]:~$ sudo gonit
daemon with PID 3540 awakened

Check Storage Space on Drive #

df -h

Title

Go to Top