サーバーに32GBしかありませんが、ログがそのスペースをすぐに使い果たしています。だから私はログを無効にしたい。
私はそれをどこで行うかを見つけたと思いますが、私はサーバーに関しては完全な初心者なので、サーバーがクラッシュしないことを確認せずに物事を変更し始めたくありません。
etc / apache2 / apache2.confで、私はこれを見つけました:
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
そしてetc/apache2 / conf.d / other-vhost-access-logで、私はこれを見つけました:
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
ログを無効にするにはどうすればよいですか?
前もって感謝します