当前位置:网站首页>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
边栏推荐
- RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
- HDR image reconstruction from a single exposure using deep CNN reading notes
- Sword finger offer question brushing record 1
- Pit encountered by handwritten ABA
- That's why you can't understand recursion
- Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
- What are the specific steps and schedule of IELTS speaking?
- 新手程序员该不该背代码?
- What are the interface tests? What are the general test points?
- Senior soft test (Information System Project Manager) high frequency test site: project quality management
猜你喜欢
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
基于 QEMUv8 搭建 OP-TEE 开发环境
Leetcode exercise - Sword finger offer 26 Substructure of tree
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
Spatial domain and frequency domain image compression of images
UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
新手程序员该不该背代码?
随机推荐
pytorch_ Yolox pruning [with code]
Web APIs DOM time object
extern关键字
Void keyword
将MySQL的表数据纯净方式导出
China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
sizeof关键字
(十八)LCD1602实验
[leetcode] 19. Delete the penultimate node of the linked list
自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
新手程序员该不该背代码?
网络基础入门理解
Adavit -- dynamic network with adaptive selection of computing structure
return 关键字
config:invalid signature 解决办法和问题排查详解
UDP编程
基於 QEMUv8 搭建 OP-TEE 開發環境
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
剑指offer刷题记录1