Changes between Initial Version and Version 1 of Nmm2022/Agenda/Netbox


Ignore:
Timestamp:
May 31, 2022, 5:31:20 PM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Nmm2022/Agenda/Netbox

    v1 v1  
     1= Installing NetBox on Ubuntu 20.04 =
     2NetBox requires PostgreSQL 10 or later. Please note that MySQL and other relational databases are not supported.
     3
     4=== PostgreSQL Database Installation ===
     5{{{
     6# sudo apt update
     7# sudo apt install -y postgresql
     8}}}
     9
     10Once PostgreSQL has been installed, start the service and enable it to run at boot:
     11{{{
     12# sudo systemctl start postgresql
     13# sudo systemctl enable postgresql
     14}}}
     15
     16=== Database Creation ===
     17At a minimum, we need to create a database for NetBox and assign it a username and password for authentication. Start by invoking the PostgreSQL shell as the system Postgres user.
     18{{{
     19# sudo -u postgres psql
     20}}}
     21
     22Within the shell, enter the following commands to create the database and user (role), substituting your own value for the password:
     23{{{
     24CREATE DATABASE netbox;
     25CREATE USER netbox WITH PASSWORD 'netbox123';
     26GRANT ALL PRIVILEGES ON DATABASE netbox TO netbox;
     27}}}
     28Do not use the password from the example. Choose a strong, random password to ensure secure database authentication for your NetBox installation.