当前位置:网站首页>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
边栏推荐
- Spatial domain and frequency domain image compression of images
- go多样化定时任务通用实现与封装
- BasicVSR_PlusPlus-master测试视频、图片
- HDR image reconstruction from a single exposure using deep CNN reading notes
- Chapter 3: detailed explanation of class loading process (class life cycle)
- UDP编程
- The nearest common ancestor of binary (search) tree ●●
- Chapter 4: talk about class loader again
- 树的先序中序后序遍历
- 软考高级(信息系统项目管理师)高频考点:项目质量管理
猜你喜欢
NPDP认证|产品经理如何跨职能/跨团队沟通?
新手程序员该不该背代码?
Config:invalid signature solution and troubleshooting details
rust知识思维导图xmind
Memorabilia of domestic database in June 2022 - ink Sky Wheel
That's why you can't understand recursion
【编译原理】做了一半的LR(0)分析器
NPDP certification | how do product managers communicate across functions / teams?
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
Aardio - 封装库时批量处理属性与回调函数的方法
随机推荐
基於 QEMUv8 搭建 OP-TEE 開發環境
NetXpert XG2帮您解决“布线安装与维护”难题
Anaconda installs third-party packages
项目复盘模板
云原生技术--- 容器知识点
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
SQL server generates auto increment sequence number
网络基础入门理解
pytorch_ Yolox pruning [with code]
How do I write Flask's excellent debug log message to a file in production?
poj 1094 Sorting It All Out (拓扑排序)
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
Windows Auzre 微软的云计算产品的后台操作界面
如何实现文字动画效果
GD32F4XX串口接收中断和闲时中断配置
剑指offer刷题记录1
Jafka来源分析——Processor
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
memcached
void关键字