Сообщения

Сообщения за январь, 2023

@EnableWebMvc and LocalDateTime

@Configuration //@EnableWebMvc - if uncomment this then LocalDateTime will be as arrays public class WebConfig implements WebMvcConfigurer {

unix linux usefull commands; clear up disk space

df -h ncdu - check directory sizes ss -plunt for app and port list  clear log:  rm /var/log/btmp.* journalctl --disk-usage journalctl --vacuum-size=50M journalctl --verify nano /etc/systemd/journald.conf SystemMaxUse=50M SystemMaxFileSize=12M systemctl restart systemd-journald nano /etc/logrotate.conf daily rotate 1 https://unix.stackexchange.com/a/605809/346938 https://www.linuxuprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html

elasticsearch howeaver

------------------------------- elasticsearch download zip elasticsearch.yml: # allow CORS requests from https://tauri.localhost http.cors.enabled: true http.cors.allow-origin: "https://tauri.localhost" # and if your cluster uses authorization: http.cors.allow-headers: X-Requested-With,Content-Type,Content-Length,Authorization action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml* roles.yml: # The default roles file is empty as the preferred method of defining roles is # through the API/UI. File based roles are useful in error scenarios when the # API based roles may not be available. admins:   cluster:     - all   indices:     - names:         - "*"       privileges:         - all devs:   cluster:     - manage   indices:     - names:         - "*"       privileges:         - write         - delete         - create_index ------------------------------- ------------------------------- ------------------------------- kibana