4. Rocky 8 as App

最後更新: 2024-05-05

目錄

 

  • Rocky 8 App Folder
  • Cleanup contrainer script

Rocky 8 App Folder

 

mysql

  • /etc/my.cnf.d/
  • /var/lib/mysql/
  • /var/log/mysql/                                # log

nginx

  • /etc/nginx
  • /var/log/nginx                                  # log
  • /usr/share/nginx/html

apache & php

  • /etc/httpd
  • /etc/opt/remi/php80/
  • /home/vhosts
  • /var/log/httpd                                   # log
  • /var/opt/remi/php80/log/php-fpm      # log
  • /var/opt/remi/php80/lib/php/session

 


Cleanup contrainer script

 

cleanup.sh

#!/bin/bash

rm -f /etc/*-
dnf clean all
logrotate -f /etc/logrotate.conf
rm /var/log/*-* -f
> /var/log/lastlog
> /var/log/dnf.log
> /var/log/dnf.librepo.log
> /var/log/dnf.rpm.log
> /var/log/lastlog
rm -f /var/log/anaconda/*
history -c

 

 

 

 

Creative Commons license icon Creative Commons license icon