Różnice między wybraną wersją a wersją aktualną.
Nowa wersja | Poprzednia wersja | ||
cacti_0.8.8h_weathermap_0.98 [2018/11/21 11:43] – utworzono kamil | cacti_0.8.8h_weathermap_0.98 [2019/02/22 11:40] (aktualna) – kamil | ||
---|---|---|---|
Linia 6: | Linia 6: | ||
< | < | ||
- | aptitude install nginx php5-fpm php5-mysql mysql-server mysql-client bzip2 unzip p7zip-full mc libphp-adodb php5-cli php5-snmp rrdtool snmp ucf iputils-ping | + | aptitude install nginx php5-fpm php5-mysql |
</ | </ | ||
+ | ==== Nginx ==== | ||
+ | |||
+ | Edytujemy plik: / | ||
+ | |||
+ | < | ||
+ | server { | ||
+ | listen 80 default_server; | ||
+ | listen [::]:80 default_server; | ||
+ | |||
+ | root / | ||
+ | index index.php; | ||
+ | server_name _; | ||
+ | |||
+ | location / { | ||
+ | try_files $uri $uri/ =404; | ||
+ | } | ||
+ | |||
+ | location ~ \.php$ { | ||
+ | include snippets/ | ||
+ | fastcgi_pass unix:/ | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Reload konfiguracji: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== MySQL ==== | ||
+ | |||
+ | < | ||
+ | root@cacti: | ||
+ | Enter password: | ||
+ | Welcome to the MySQL monitor. | ||
+ | Your MySQL connection id is 86 | ||
+ | Server version: 5.5.62-0+deb8u1 (Debian) | ||
+ | |||
+ | Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. | ||
+ | |||
+ | Oracle is a registered trademark of Oracle Corporation and/or its | ||
+ | affiliates. Other names may be trademarks of their respective | ||
+ | owners. | ||
+ | |||
+ | Type ' | ||
+ | |||
+ | mysql> CREATE USER ' | ||
+ | Query OK, 0 rows affected (0.00 sec) | ||
+ | |||
+ | mysql> CREATE DATABASE cacti; | ||
+ | Query OK, 1 row affected (0.00 sec) | ||
+ | |||
+ | mysql> GRANT ALL PRIVILEGES ON cacti.* TO cacti@' | ||
+ | Query OK, 0 rows affected (0.00 sec) | ||
+ | |||
+ | mysql> FLUSH PRIVILEGES; | ||
+ | Query OK, 0 rows affected (0.00 sec) | ||
+ | |||
+ | mysql> \q | ||
+ | Bye | ||
+ | </ | ||
+ | |||
+ | ==== Aplikacja ==== | ||
+ | |||
+ | < | ||
+ | cd /var/www/ | ||
+ | wget https:// | ||
+ | wget https:// | ||
+ | unzip ./ | ||
+ | tar xzf ./ | ||
+ | mv ./ | ||
+ | rm ./ | ||
+ | mv ./ | ||
+ | rm cacti-0.8.8h.tar.gz | ||
+ | rm php-weathermap-0.98.zip | ||
+ | cd html | ||
+ | mysql -u cacti -p cacti < ./cacti.sql | ||
+ | </ | ||
+ | |||
+ | Edytujemy plik / | ||
+ | |||
+ | ==== Gotowy obraz VM ==== | ||
+ | |||
+ | Informacje: | ||
+ | < | ||
+ | Obraz został stworzony pod kontrolą Proxmoxa w formacie qcow2 - po rozpakowaniu będzie zajmował 32GB! | ||
+ | |||
+ | Debian 8 x64 | ||
+ | |||
+ | DHCP Client jest włączony | ||
+ | |||
+ | SSH: | ||
+ | devel/pld | ||
+ | root/pld | ||
+ | |||
+ | MySQL: | ||
+ | root/pld | ||
+ | cacti/ | ||
+ | |||
+ | Cacti: | ||
+ | http://ip/ | ||
+ | admin/ | ||
+ | </ | ||
+ | |||
+ | Link do pobrania: [[http:// | ||