ja:documentation:pandorafms:technical_annexes:31_pfms_install_latest_rocky_linux

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:documentation:pandorafms:technical_annexes:31_pfms_install_latest_rocky_linux [2025/04/05 23:39] – [オペレーティングシステム設定とデータベース作成] junichija:documentation:pandorafms:technical_annexes:31_pfms_install_latest_rocky_linux [2025/04/05 23:40] (現在) – [コンソールと Pandora FMS サーバのインストール] junichi
行 384: 行 384:
 PFMS ソフトウェアエージェントをインストールするには: PFMS ソフトウェアエージェントをインストールするには:
  
-<code>+<code bash>
 wget https://firefly.pandorafms.com/pandorafms/latest/pandorafms_one_agent_linux_bin-latest.el8.x86_64.rpm wget https://firefly.pandorafms.com/pandorafms/latest/pandorafms_one_agent_linux_bin-latest.el8.x86_64.rpm
 +
  
 </code> </code>
行 391: 行 392:
 ---- ----
  
-<code>+<code bash>
 dnf install -y ./pandorafms*.rpm dnf install -y ./pandorafms*.rpm
  
行 398: 行 399:
 ---- ----
  
-<code>+<code bash>
 wget https://firefly.pandorafms.com/pandorafms/utils/gotty_linux_amd64.tar.gz wget https://firefly.pandorafms.com/pandorafms/utils/gotty_linux_amd64.tar.gz
  
行 409: 行 410:
 ---- ----
  
-<code>+<code bash>
 systemctl enable mysqld --now systemctl enable mysqld --now
  
行 418: 行 419:
 ---- ----
  
-<code>+<code bash>
 mysql -upandora -ppandora mysql -upandora -ppandora
 </code> </code>
  
  
-<code>+<code sql>
 use pandora; use pandora;
  
行 436: 行 437:
 ---- ----
  
-<code>+<code bash>
 cat> /var/www/html/pandora_console/include/config.php <<EO_CONFIG_F cat> /var/www/html/pandora_console/include/config.php <<EO_CONFIG_F
 <?php <?php
行 442: 行 443:
 \$config["dbname"]="pandora"; \$config["dbname"]="pandora";
 \$config["dbuser"]="pandora"; \$config["dbuser"]="pandora";
-\$config["dbpass"]="pandora";+\$config["dbpass"]="Pandor4!";
 \$config["dbhost"]="127.0.0.1"; \$config["dbhost"]="127.0.0.1";
 \$config["homedir"]="/var/www/html/pandora_console"; \$config["homedir"]="/var/www/html/pandora_console";
行 469: 行 470:
 ---- ----
  
-<code>+<code bash>
 sed -i -e "s/php_flag engine off//g" /var/www/html/pandora_console/images/.htaccess sed -i -e "s/php_flag engine off//g" /var/www/html/pandora_console/images/.htaccess
  
行 478: 行 479:
 ---- ----
  
-<code>+<code bash>
 chmod 600 /var/www/html/pandora_console/include/config.php chmod 600 /var/www/html/pandora_console/include/config.php
  
行 487: 行 488:
 </code> </code>
  
 +<wrap #ks_php_tokens />
 ---- ----
  
-<code>+<code bash>
 sed -i -e "s/^max_input_time.*/max_input_time = -1/g" /etc/php.ini sed -i -e "s/^max_input_time.*/max_input_time = -1/g" /etc/php.ini
  
行 504: 行 506:
 ---- ----
  
-<code>+<code bash>
 echo 'TimeOut 900'> /etc/httpd/conf.d/timeout.conf echo 'TimeOut 900'> /etc/httpd/conf.d/timeout.conf
  
行 515: 行 517:
 ---- ----
  
-<code>+<code bash>
 systemctl restart httpd systemctl restart httpd
  
行 524: 行 526:
 ---- ----
  
-<code>+<code bash>
 cat> /etc/snmp/snmptrapd.conf <<EOF cat> /etc/snmp/snmptrapd.conf <<EOF
 authCommunity log public authCommunity log public
行 534: 行 536:
 ---- ----
  
-<code>+<code bash>
 sed -i -e "s/^dbhost.*/dbhost 127.0.0.1/g" /etc/pandora/pandora_server.conf sed -i -e "s/^dbhost.*/dbhost 127.0.0.1/g" /etc/pandora/pandora_server.conf
  
行 550: 行 552:
  
 ---- ----
-<code> +<code bash>
 sed -i -e "s|^fping.*|fping /usr/sbin/fping|g" /etc/pandora/pandora_server.conf sed -i -e "s|^fping.*|fping /usr/sbin/fping|g" /etc/pandora/pandora_server.conf
  
行 557: 行 558:
  
 ---- ----
-<code> 
  
 +<code bash>
 sed -i "s/^remote_config.*$/remote_config 1/g" /etc/pandora/pandora_server.conf sed -i "s/^remote_config.*$/remote_config 1/g" /etc/pandora/pandora_server.conf
  
行 565: 行 566:
 ---- ----
  
-<code>+<code bash>
 cat> /etc/pandora/pandora_server.env <<'EOF_ENV' cat> /etc/pandora/pandora_server.env <<'EOF_ENV'
 #!/bin/bash #!/bin/bash
行 578: 行 579:
 ---- ----
  
-<code>+<code bash>
 cat>> /etc/sysctl.conf <<EO_KO cat>> /etc/sysctl.conf <<EO_KO
 # Pandora FMS Optimization # Pandora FMS Optimization
行 609: 行 610:
 ---- ----
  
-<code>+<code bash>
 sysctl --system sysctl --system
  
行 620: 行 621:
 ---- ----
  
-<code>+<code bash>
 cat> /etc/logrotate.d/pandora_server <<EO_LR cat> /etc/logrotate.d/pandora_server <<EO_LR
 /var/log/pandora/pandora_server.log /var/log/pandora/pandora_server.log
行 670: 行 671:
 ---- ----
  
-<code>+<code bash>
 chmod 0644 /etc/logrotate.d/pandora_server chmod 0644 /etc/logrotate.d/pandora_server
  
行 679: 行 680:
 ---- ----
  
-<code>+<code bash>
 systemctl enable pandora_server --now systemctl enable pandora_server --now
  
行 692: 行 693:
 ---- ----
  
-<code>+<code bash>
 echo \"* * * * * root wget -q -O - --no-check-certificate --load-cookies /tmp/cron-session-cookies --save-cookies /tmp/cron-session-cookies --keep session-cookies http://127.0.0.1/pandora_console/enterprise/cron.php>> /var/www/html/pandora_console/log/cron.log\">> /etc/crontab echo \"* * * * * root wget -q -O - --no-check-certificate --load-cookies /tmp/cron-session-cookies --save-cookies /tmp/cron-session-cookies --keep session-cookies http://127.0.0.1/pandora_console/enterprise/cron.php>> /var/www/html/pandora_console/log/cron.log\">> /etc/crontab
  
行 699: 行 700:
 ---- ----
  
-<code>+<code bash>
 systemctl enable pandora_agent_daemon systemctl enable pandora_agent_daemon
  
  • ja/documentation/pandorafms/technical_annexes/31_pfms_install_latest_rocky_linux.txt
  • 最終更新: 2025/04/05 23:40
  • by junichi