cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest
Monthly Archives: December 2016
Couldn’t init INBOX: Can’t sync mailbox: Messages keep getting expunged
You should check server disk space.
tcpdump show get post data
Catch outgoing HTTP requests from your server, where xx.xx.xx.xx your server IP address:
tcpdump -n -s 0 -A 'src xx.xx.xx.xx and tcp dst port 80 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)'
lveinfo
To monitor the number of LVE fault
"lveinfo --display-username --show-all --limit=25 --order-by=any_faults --by-fault=any -r 1 -d 1 --period=5m | tee /dev/stderr
To monitor the number of LVE with max CPU usage >90%
"lveinfo --display-username --show-all --limit=25 --order-by=cpu_max --by-usage=cpu_max -p 90 -d 1 - iod=5m | tee /dev/stderr
To show I/O:
"lveinfo --display-username --show-all --limit=25 --order-by=io_max --by-usage=io_max -p 90 -d 1 -period=5m | tee /dev/stderr
Free Let‘s Encrypt cPanel
/scripts/install_lets_encrypt_autossl_provider
find top by cpu usage linux
ps aux | sort -nrk 3,3 | head -n 5
enable kvm nested
cat /sys/module/kvm_intel/parameters/nested
N
Temporarily remove the KVM intel Kernel module, enable nested virtualization to be persistent across reboots and add the Kernel module back:
sudo rmmod kvm-intel
sudo sh -c “echo ‘options kvm-intel nested=y’ >> /etc/modprobe.d/dist.conf”
sudo modprobe kvm-intel
Ensure the Nested KVM Kernel module parameter for Intel is enabled on the host:
cat /sys/module/kvm_intel/parameters/nested
Y
modinfo kvm_intel | grep nested
parm: nested:bool
keystore.jk
‘cacerts’ is a truststore. A trust store is used to authenticate peers. A keystore is used to authenticate yourself.
node js logs
node my_app.js > my_app_log.log 2> my_app_err.log
openvz check io limit
root@host# vzctl set 777 --iolimit 3M --save
Setting iolimit: 3145728 bytes/sec
CT configuration saved to /etc/vz/conf/777.conf
root@host# vzctl enter 777
root@CT:/# cat /dev/urandom | pv -c - >/bigfile3
39.1MB 0:00:10 [ 3MB/s] [ <=> ]
^C
AttributeError AttributeError: ‘bool’ object has no attribute ‘__call__’
Flask-Login has set is_active is_authenticated is_anonymous to property in UserMixin, so we should use current_user.is_authenticated instead of current_user.is_authenticated()
postgrey whitelist hotmail or outlook
vi /etc/postfix/postgrey_whitelist_clients
# Do NOT greylist hotmail.com MX servers (see dig in mx hotmail.com)
/^mx[1-4]\.hotmail\.com$/
# Do NOT greylist ANY host from hotmail.com or outlook.com
#hotmail
/^.*\.hotmail\.com$/
#outlook
/^.*\.outlook\.com$/
killall postgrey
service start postgrey
Log:
postgrey[30881]: action=pass, reason=client whitelist, client_name=bay004-omc4s14.hotmail.com, client_address=65.54.190.216, sender=
You also can whitelist *.outbound.protection.outlook.com and etc
pip Failed building wheel for cryptography when installing Fabric
If you had such errors on your virtualenv:
yum install openssl-devel
CFLAGS=”-O0″ pip install Fabric
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
yum install python-devel
ISPConfig ERROR Error Username or Password empty
Make sure ispconfig user exixts in dbispconfig dabatase and than check:
vi /usr/local/ispconfig/server/lib/config.inc.php