In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install LirbeNMS, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Text environment
System version: CentOS 7.8
Web:Nginx
PHP version: 7.3 (minimum 7.3)
Database: Mariadb
Prepare yum install epel-release yum-utils-y yum localinstall http://rpms.remirepo.net/enterprise/remi-release-7.rpm-y yum-config-manager-- enable remi-php74 yum install composer cronie fping git ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-mbstring php-process php-snmp php-xml php-zip php-memcached php-mysqlnd python-memcached rrdtool python3 python3-pip-before installation Create LibreNMS user useradd librenms-d / opt/librenms-M-r usermod-a-G librenms nginx download LibreNMS file cd / opt git clone https://github.com/librenms/librenms.git
If you have this problem, change the address above from https to git, but very slowly
Set permissions chown-R librenms:librenms / opt/librenms chmod 770 / opt/librenms setfacl-d-m g::rwx / opt/librenms/rrd / opt/librenms/logs / opt/librenms/bootstrap/cache/ / opt/librenms/storage/ setfacl-R-m g::rwx / opt/librenms/rrd / opt/librenms/logs / opt/librenms/bootstrap/cache/ / opt/librenms/storage/ chgrp apache / var/lib/php/session/ to install PHP dependent component su-librenms. / scripts/composer_wrapper.php install-- no-dev exit installation, Configure DByum-y install mariadb-server systemctl start mariadb & & systemctl enable mariadb mysql-uroot-p CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci CREATE USER 'librenms'@'localhost' IDENTIFIED BY' xiaoyu123'; GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost'; FLUSH PRIVILEGES; quit # modify mariadb configuration file # vi / etc/my.cnf innodb_file_per_table=1 lower_case_table_names=0 # wr save and exit # systemctl restart mariadb
Add configuration
PHP-FPM configuration
1. Modify time zone
Vi / etc/php.ini
Modify time zone
two。 Modify php-fpm configuration file
Vi / etc/php-fpm.d/www.conf # changed to the following #; user = apache user = nginx group = apache; listen = 127.0.0.1 nginx group 9000 listen = / run/php-fpm/php-fpm.sock listen.owner = nginx listen.group = nginx listen.mode = 0660
3. Restart the php-fpm service
Systemctl enable php-fpm systemctl restart php-fpm configuration Nginxvi / etc/nginx/conf.d/librenms.conf # add the following content # server {listen 80; server_name librenms.example.com; root / opt/librenms/html; index index.php; charset utf-8; gzip on; gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon Location / {try_files $uri $uri/ / index.php?$query_string;} location / api/v0 {try_files $uri $uri/ / api_v0.php?$query_string;} location ~\ .php {include fastcgi.conf; fastcgi_split_path_info ^ (. +\ .php) (/. +) $; fastcgi_pass unix:/run/php-fpm/php-fpm.sock;} location ~ /\ .ht {deny all;}}
Start Nginxsystemctl enable nginx systemctl restart nginxSNMP configuration cp / opt/librenms/snmpd.conf.example / etc/snmp/snmpd.conf y curl-o / usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro chmod + x / usr/bin/distro systemctl enable snmpd & & systemctl restart snmpd schedule task cp / opt/librenms/librenms.nonroot.cron / etc/cron.d/librenms copy LibreNMS configuration file cp / opt/librenms/misc/librenms.logrotate / etc/logrotate.d/librenms access front end
At this point, you will find that the access is still the interface of Nginx, and some parameters need to be adjusted here.
Vi / etc/nginx/nginx.conf systemctl restart nginx
Change the port to 8080
Front-end configuration
Click the icon to proceed to the next step
Check and pass
Fill in the database information
Click build after passing
Click the red box for the next step
Normal is empty dashboard
Set up Chinese
Easy to use
New equipment
Final effect
Thank you for reading this article carefully. I hope the article "how to install LirbeNMS" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.