mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
added more changes for centos/rhel installation
This commit is contained in:
parent
2213e3e0cf
commit
af519b93b7
@ -62,6 +62,7 @@ If `git` is not already installed, install it:
|
|||||||
|
|
||||||
```
|
```
|
||||||
# sudo apt-get install -y git
|
# sudo apt-get install -y git
|
||||||
|
# sudo yum install -y git
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, clone the **master** branch of the NetBox GitHub repository into the current directory:
|
Next, clone the **master** branch of the NetBox GitHub repository into the current directory:
|
||||||
|
@ -117,7 +117,7 @@ To enable SSL, consider this guide on [securing Apache with Let's Encrypt](https
|
|||||||
|
|
||||||
# gunicorn Installation
|
# gunicorn Installation
|
||||||
|
|
||||||
Save the following configuration file in the root netbox installation path (in this example, `/opt/netbox/`) as `gunicorn_config.py`. Be sure to verify the location of the gunicorn executable (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed.
|
Save the following configuration file in the root netbox installation path (in this example, `/opt/netbox/`) as `gunicorn_config.py`. Be sure to verify the location of the gunicorn executable (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using centos/RHEL use the apache user instead of www-data.
|
||||||
|
|
||||||
```
|
```
|
||||||
command = '/usr/bin/gunicorn'
|
command = '/usr/bin/gunicorn'
|
||||||
@ -127,6 +127,7 @@ workers = 3
|
|||||||
user = 'www-data'
|
user = 'www-data'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# supervisord Installation
|
# supervisord Installation
|
||||||
|
|
||||||
Save the following as `/etc/supervisor/conf.d/netbox.conf`. Update the `command` and `directory` paths as needed.
|
Save the following as `/etc/supervisor/conf.d/netbox.conf`. Update the `command` and `directory` paths as needed.
|
||||||
|
Loading…
Reference in New Issue
Block a user