gpt4 book ai didi

linux - 我尝试设置 monitorix 并收到错误消息 :You don't have permission to access/monitorix on this server

转载 作者:太空宇宙 更新时间:2023-11-04 12:26:36 24 4
gpt4 key购买 nike

我在我的虚拟机上安装了 monitorix 并设置了 conf 文件如下:

# Monitorix - configuration file
#
# See monitorix.conf(5) manpage for a detailed description of each option.
#

title = MonitorIX
hostname = <host_ip>
theme_color = black
refresh_rate = 150
iface_mode = graph
enable_zoom = y
netstats_in_bps = n
disable_javascript_void = n
temperature_scale = c
show_gaps = n
global_zoom = 1
max_historic_years = 1
accept_selfsigned_certs = y
image_format = PNG
include_dir = /etc/monitorix/conf.d

base_dir = /var/lib/monitorix/www/
base_lib = /var/lib/monitorix/
base_url = /monitorix
base_cgi = /monitorix-cgi

<httpd_builtin>
enabled = y
host =
port = 8000
user = nobody
group = nobody
log_file = /var/log/monitorix-httpd
hosts_deny = all
hosts_allow = <host_ip>
<auth>
enabled = n
msg = Monitorix: Restricted access
htpasswd = /var/lib/monitorix/htpasswd
</auth>
</httpd_builtin>


# Log files pathnames
# -----------------------------------------------------------------------------
log_file = /var/log/monitorix
secure_log = /var/log/secure
mail_log = /var/log/maillog
milter_gl = /var/milter-greylist/greylist.db
imap_log = /var/log/imap
hylafax_log = /var/spool/hylafax/etc/xferfaxlog
cups_log = /var/log/cups/page_log
ftp_log = /var/log/proftpd/access.log
fail2ban_log = /var/log/fail2ban.log
spamassassin_log = /var/log/maillog
clamav_log = /var/log/clamav/clamav.log
cg_logdir = /var/CommuniGate/SystemLogs/
squid_log = /var/log/squid/access.log

imap_log_date_format = %b %d
secure_log_date_format = %b %e

现在我尝试从浏览器启动它,但出现以下错误:禁止

您无权访问此服务器上的/monitorix。

Monitorix HTTP 服务器监听本地主机端口 8000

最佳答案

试试这个:

chmod 755 -R  /var/lib/monitorix/www/

关于linux - 我尝试设置 monitorix 并收到错误消息 :You don't have permission to access/monitorix on this server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44413754/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com