当前位置:网站首页>OpenNMS separation database
OpenNMS separation database
2022-07-06 22:33:00 【Brother Xing plays with the clouds】
1. Detach database 1.1 To configure OpenNMS file 1. We need to be in OpenNMS Revision in China datasource data source , stay OpenNMS In the following directory :
/opt/opennms/etc/opennms-datasources.xml
2. take localhost Change to database host IP address
<jdbc-data-source name="opennms"
database-name="opennms"
class-name="org.postgresql.Driver" url="jdbc:postgresql:// Database host IP:5432/opennms"
user-name="opennms"
password="opennms" />
Before the change :
After modification :
1.2 install PostgreSQL database 1. install PostgreSql database
yum install postgresql postgresql-server command , The system automatically downloads postgreSQL install .
2. First start PostgreSQL
With root Identity run command :
/sbin/service postgresql start
3. If you see a mistake , You must initialize PostgreSQL, Run the following command :
/sbin/service postgresql initdb
/sbin/service postgresql start
4. In order to ensure that PostgreSQL Will start after restart , Use “chkconfig Of ” The command starts at startup , Run the following command :
/sbin/chkconfig postgresql on
1.2.1 Configuration allows users to access the database 1. find /var/lib/pgsql/data/pg_hba.conf The content is :
ident—>trust
It is amended as follows
that will do .
2. find /var/lib/pgsql/data/postgresql.conf Modify the following
listen_addresses = '*'
#port = 5432 Get rid of ”#” Number
3. After the modification , You need to restart the database , With root Identity running :
/sbin/service postgresql restart
1.3 test stay OpenNMS Test in the host to separate PostgreSql database
1. use putty Sign in OpenNMS host
2. perform psql -h Database host IP -U opennms -d opennms
3. view the database
Carry out orders \l
To view the user
Carry out orders \du
sign out
Carry out orders \q
The above test instructions can be found in OpenNMS Successfully connected to the detached database on the host
1.4 Execute... On the client side sql sentence : 1. stay /opt/opennms/etc Under the table of contents
Restart after execution OpenNMS
边栏推荐
- The nearest common ancestor of binary (search) tree ●●
- BasicVSR_PlusPlus-master测试视频、图片
- Should novice programmers memorize code?
- config:invalid signature 解决办法和问题排查详解
- 将MySQL的表数据纯净方式导出
- UVa 11732 – strcmp() Anyone?
- Anaconda installs third-party packages
- 2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行
- 金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
- Comparison between variable and "zero value"
猜你喜欢

RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv

NPDP certification | how do product managers communicate across functions / teams?

Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
![[linear algebra] determinant of order 1.3 n](/img/6e/54f3a994fc4c2c10c1036bee6715e8.gif)
[linear algebra] determinant of order 1.3 n

UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop

关于声子和热输运计算中BORN电荷和non-analytic修正的问题

Adavit -- dynamic network with adaptive selection of computing structure

重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障

Daily question 1: force deduction: 225: realize stack with queue

Spatial domain and frequency domain image compression of images
随机推荐
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
Signed and unsigned keywords
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
手写ABA遇到的坑
MySQL ---- first acquaintance with MySQL
OpenNMS分离数据库
rust知识思维导图xmind
go多样化定时任务通用实现与封装
[leetcode] 19. Delete the penultimate node of the linked list
i. Mx6ull build boa server details and some of the problems encountered
【LeetCode】19、 删除链表的倒数第 N 个结点
hdu 5077 NAND(暴力打表)
UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
Web APIs DOM time object
使用云服务器搭建代理
Volatile keyword
General implementation and encapsulation of go diversified timing tasks
2022-07-05 use TPCC to conduct sub query test on stonedb
Inno setup packaging and signing Guide
小程序系统更新提示,并强制小程序重启并使用新版本