vim /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
add: /dev/shm/* mrwlkix,
apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
sentry cleanup --days 31
vim /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
add: /dev/shm/* mrwlkix,
apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
sentry cleanup --days 31
curl -P - --insecure "ftp://192.168.0.100:21" --user "user:password"
iptables -C -INPUT -s 1.1.1.1 -j ACCEPT || iptables -A -INPUT -s 1.1.1.1 -j ACCEPT
STOP SLAVE;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
START SLAVE;
SHOW SLAVE STATUS \G
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
certbot certonly --manual --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges dns-01 -d "*.
wget -O - https://get.ispconfig.org | sh -s --
[ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)
Fix OpenVZ install issue
sed -i 's/mount -o remount/echo/' /tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php
php -f /tmp/ispconfig-ai/ispconfig.ai.php
WARNING! This script will reconfigure your complete server!
It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
Type 'yes' if you really want to continue:
yes
mongo --quiet --eval "printjson(db.adminCommand('listDatabases'))"
grep -oh /some/path/*
vim /etc/systemd/timesyncd.conf
[Time]
FallbackNTP=ntp.ubuntu.com
systemctl daemon-reload
timedatectl set-ntp off
timedatectl set-ntp on
timedatectl status
SET GLOBAL sql_mode = '';
Problem too many open file
vim /lib/systemd/system/filebeat.service
[Service]
LimitNOFILE=infinity
systemctl daemon-reload
systemctl restart filebeat
Moving to ERROR step
org.elasticsearch.common.ValidationException: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [100]/[100] maximum shards open;
at org.elasticsearch.indices.ShardLimitValidator.validateShardLimit(ShardLimitValidator.java:80) ~[elasticsearch
curl http://localhost:9200/_cat/shards | wc -l
100
curl -XPUT http://localhost:9200/_cluster/settings -H "Content-Type: application/json" -d '{ "persistent": { "cluster.max_shards_per_node": "200" } }'
vim /etc/postfix/sender_access
[email protected] REJECT
postmap hash:/etc/postfix/sender_access
smtpd_relay_restrictions = …
…
check_sender_access hash:/etc/postfix/sender_access
/etc/init.d/postfix restart
Delivery Status Notification (Failure)
Inbox
Mail Delivery Subsystem <[email protected]>
8:16 PM (6 minutes ago)
to me
Message blocked
make sure HWADDR was set
vi /etc/sysconfig/network-scripts/ifcfg-eth100
HWADDR=MAC ADDRESS
DEBIAN/UBUNTU
apt-get install ca-certificates
FEDORA/CENTOS
dnf install ca-certificates.noarch
yum install ca-certificates.noarch