Forrest logo
back to context overview

nginx

List of commands for nginx:

  • nginx:config:test nginx: Test the configuration without affecting the running server.
    $ nginx -t
    try on your machine
    explain this command
  • nginx:hosts:list List all server names configured in nginx vhosts
    $ nginx -T | grep server_name
    try on your machine
    explain this command
  • nginx:reload Reload the nginx server
    $ systemctl reload nginx
    try on your machine
    explain this command
  • nginx:restart Restart the nginx server
    $ systemctl restart nginx
    try on your machine
    explain this command
  • nginx:tldr:6ab30 nginx: Start server with a custom configuration file.
    $ nginx -c ${configuration_file}
    try on your machine
    explain this command
  • nginx:tldr:abb25 nginx: Reload the configuration by sending a signal with no downtime.
    $ nginx -s reload
    try on your machine
    explain this command
  • nginx:tldr:d4c4c nginx: Start server with a prefix for all relative paths in the configuration file.
    $ nginx -c ${configuration_file} -p ${prefix-for-relative-paths}
    try on your machine
    explain this command
  • nginx:tldr:ee434 nginx: Start server with the default config file.
    $ nginx
    try on your machine
    explain this command
back to context overview