Pasang ZMQ untuk PHP

wget http://download.zeromq.org/zeromq-4.1.0-rc1.tar.gz
tar -zxvf zeromq-4.1.0-rc1.tar.gz
cd zeromq-4.1.0
./Konfigurasi
membuat
membuat memasang

 

pecl install zmq-beta

 

Mencari php.ini :

php -i | grep ‘Configuration File

 

Check if extension was added:

cat /usr/local/lib/php.ini | grep zmq
Should show:
extension=zmq.so

Setup a phpinfo.php file containing code phpinfo() in that folder, to check if library is loaded.

 

If server has a firewall, this requires opening some ports in firewall for TCP. Ex: 5555, 8080. Check scripts like push-server.php .

muatan cpu yang tinggi xmlrpc.php

 

Beban yang tinggi akibat xmlrpc.php seolah-olah masalah yang dikenali yang boleh berlaku pada tapak WordPress:
https://wordpress.org/support/topic/resolving-xmlrpcphp-ddos-attack-with-htaccess-redirect?replies=8
https://wordpress.org/support/topic/xmlrpcphp-files-cause-high-cpu-usage-and-high-resource-usage?replies=2

Some sites during attack become inaccessible or get broken and show Too Many Redirects error.

Cepat adalah untuk menambah ini ke .htaccess :

RewriteRule ^ xmlrpc.php$ “http:\/\/0\.0\.0\.0\/” [R = 301, L]

 

Atau hanya Hapuskan / menyahdaya menyahdaya fail (set keizinan 000).

 

More details about XMLRPC :
https://blog.Sucuri.net/2015/10/brute-Force-amplification-Attacks-against - wordpress-xmlrpc.html

Jika anda memerlukan XMLRPC anda boleh menggunakan untuk menapis permintaan:
https://wordpress.org/plugins/stop-xmlrpc-attack/
https://www.wordfence.com/Blog/2015/10/Should-You-disable-XML-RPC-on-Word akhbar /