sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=31
sudo dnf system-upgrade reboot
Error: any valid prefix is expected rather than
You can not set IP out of IP range:
The reason each number can only reach up to 255 is that each of the numbers is really an eight digit binary number (octet).
sudo ip addr add 192.168.256.100/24 dev tap1 # Bad
sudo ip addr add 192.168.255.100/24 dev tap1 # OK
error: unpacking of archive failed on file /usr/sbin/suexec;5e440e82: cpio: cap_set_file
Running transaction
Installing : httpd-2.4.6-90.el7.centos.x86_64 1/1
Error unpacking rpm package httpd-2.4.6-90.el7.centos.x86_64
error: unpacking of archive failed on file /usr/sbin/suexec;5e440e82: cpio: cap_set_file
Verifying : httpd-2.4.6-90.el7.centos.x86_64 1/1
Failed:
httpd.x86_64 0:2.4.6-90.el7.centos
/var/lib/lxc/new.server.lt/config
lxc.cap.drop =
lxc.cap.drop = mac_admin mac_override setpcap
lxc.cap.drop = sys_module sys_nice sys_pacct
lxc.cap.drop = sys_rawio sys_time
echo “%_netsharedpath /sys:/proc” >> /etc/rpm/macros.dist
Transaction test succeeded
Running transaction
Installing : httpd-2.4.6-90.el7.centos.x86_64
apache backlog monitoring
ss -lti '( sport = :http )' | grep unacked
If its fine, you should not see any unacked values
php enable hsts
<?php header("strict-transport-security: max-age=100");
Without https you will get NET::ERR_CERT_AUTHORITY_INVALID error:
You cannot visit website.com right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.
openvz stop service in group of nodes
for i in `prlctl list | awk '$5 ~ /database_servers*/ {print $5}'`; do prlctl exec $i service firewalld stop; done
sysbench mariadb
sysbench \
--db-driver=mysql \
--mysql-table-engine=innodb \
--oltp-table-size=100000 \
--oltp-tables-count=12 \
--num-threads=4 \
--mysql-host=192.168.200.110 \
--mysql-db=test_database \
--mysql-port=3306 \
--mysql-user=sbtest \
--mysql-password=password \
--test=/usr/share/sysbench/tests/include/oltp_legacy/parallel_prepare.lua \
run
ip route flush cache
ip route flush table main
ansible fingerprint
vi /etc/ansible/ansible.cfg
[defaults]
host_key_checking = False
firewalld MASQUERADE
firewall-cmd --zone=public --add-masquerade
ansible ping
ansible -m ping --connection=local 127.0.0.1
127.0.0.1 | SUCCESS => {
"changed": false,
"ping": "pong"
}
cPanel exim log more information
Exim Configuration Manager -> Advanced Editor
log_selector:
+incoming_port +smtp_connection +all_parents +retry_defer +subject +arguments +received_recipients +address_rewrite +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +lost_incoming_connection +queue_run +received_sender +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_protocol_error +smtp_syntax_error +tls_cipher +tls_peerdn
-bash: chattr: command not found
yum install e2fsprogs
ai-bolit segmentation fault
php -q ai-bolit.php
Segmentation fault
Fix to disable opcache:
php -n -d extension=/usr/lib64/php/modules/opcache.so -q /root/ai-bolit/ai-bolit.php /some/path/to/scan
Invalid command ‘SetEnv’ cPanel
yum install ea-apache24-mod_env
.htaccess: Invalid command ‘SetEnv’, perhaps misspelled or defined by a module not included in the server configuration, referer: