mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
docs: Updated CentOS 7 + Nginx install docs (#7209)
This commit is contained in:
@ -20,7 +20,7 @@ FLUSH PRIVILEGES;
|
|||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
`vim /etc/my.cnf`
|
`vi /etc/my.cnf`
|
||||||
|
|
||||||
Within the [mysqld] section please add:
|
Within the [mysqld] section please add:
|
||||||
|
|
||||||
@ -63,6 +63,7 @@ Restart PHP.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
systemctl restart php-fpm
|
systemctl restart php-fpm
|
||||||
|
systemctl enable php-fpm
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Add librenms user
|
#### Add librenms user
|
||||||
@ -86,7 +87,7 @@ git clone https://github.com/librenms/librenms.git librenms
|
|||||||
cd /opt/librenms
|
cd /opt/librenms
|
||||||
mkdir rrd logs
|
mkdir rrd logs
|
||||||
chmod 775 rrd
|
chmod 775 rrd
|
||||||
vim /etc/nginx/conf.d/librenms.conf
|
vi /etc/nginx/conf.d/librenms.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the following config:
|
Add the following config:
|
||||||
@ -120,6 +121,20 @@ server {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If LibreNMS will be your only vhost on this server then you will need to remove the default server block for nginx.
|
||||||
|
|
||||||
|
Edit `/etc/nginx/nginx.conf` and look for a large block of text starting like:
|
||||||
|
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove this block of text.
|
||||||
|
|
||||||
#### SELinux
|
#### SELinux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -158,7 +173,7 @@ Once you have completed the web installer steps. Please add the following to `co
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
|
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
|
||||||
vim /etc/snmp/snmpd.conf
|
vi /etc/snmp/snmpd.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit the text which says `RANDOMSTRINGGOESHERE` and set your own community string.
|
Edit the text which says `RANDOMSTRINGGOESHERE` and set your own community string.
|
||||||
|
Reference in New Issue
Block a user