readme

来自「Network Administration Visualized 网络管理可」· 代码 · 共 50 行

TXT
50
字号
What?=====This directory contains SQL scripts to create the initial NAV databases.Files=====manage.sql       - Creates the manage databasetypes.sql        - Initializes the equipment vendor and type tables of the                   manage databasesnmpoid.sql      - Initializes the SNMP OID registry of the manage databaselogger.sql       - Creates the navlog databasenavprofiles.sql  - Creates the navprofiles databasearnold.sql       - Creates the arnold databaseHow to create the databases from scratch========================================This section assumes your PostgreSQL server is configured to directlyidentify the local unix account postgres as the postgres database user(with the "ident sameuser" directive in pg_hba.conf).  su from root tothe postgres account before performing these commands.First, create a database user for NAV, and choose a password for it:  createuser --no-createdb --no-adduser --pwprompt navNow, create the databases:  createdb --owner nav --encoding UTF-8 manage  createdb --owner nav --encoding UTF-8 navprofiles  createdb --owner nav --encoding UTF-8 logger  createdb --owner nav --encoding UTF-8 arnold  createlang plpgsql manage  createlang plpgsql navprofilesThen, finally, initialize the databases.  These scripts are run as thenav user you created above, so you will be prompted for the passwordyou chose.  psql -f manage.sql manage nav  psql -f types.sql manage nav  psql -f snmpoid.sql manage nav  psql -f navprofiles.sql navprofiles nav  psql -f logger.sql logger nav  psql -f arnold.sql arnold navPlease be aware that on some installations, the PostgreSQL superusermight not be named postgres.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?