1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Specified syntax for code blocks

This commit is contained in:
Jeremy Stretch
2016-11-30 12:01:45 -05:00
parent 9b8bae501b
commit 2986840755
6 changed files with 46 additions and 47 deletions

View File

@ -4,27 +4,27 @@ NetBox requires a PostgreSQL database to store data. MySQL is not supported, as
**Debian/Ubuntu**
```
```shell
# apt-get install -y postgresql libpq-dev python-psycopg2
```
**CentOS/RHEL**
```
```shell
# yum install -y postgresql postgresql-server postgresql-devel python-psycopg2
# postgresql-setup initdb
```
If using CentOS, modify the PostgreSQL configuration to accept password-based authentication by replacing `ident` with `md5` for all host entries within `/var/lib/pgsql/data/pg_hba.conf`. For example:
```
```text
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
```
Then, start the service:
```
```shell
# systemctl start postgresql
```
@ -35,7 +35,7 @@ At a minimum, we need to create a database for NetBox and assign it a username a
!!! danger
DO NOT USE THE PASSWORD FROM THE EXAMPLE.
```
```shell
# sudo -u postgres psql
psql (9.3.13)
Type "help" for help.
@ -51,7 +51,7 @@ postgres=# \q
You can verify that authentication works issuing the following command and providing the configured password:
```
```shell
# psql -U netbox -h localhost -W
```