Apache configuration
$apachectl -M = check enabled modules
$sudo nano /etc/apache2/mods-available/mpm_event.conf = increase apache inbound concurrent connections to 5000
<IfModule mpm_worker_module>
ServerLimit 250
StartServers 10
MinSpareThreads 75
MaxSpareThreads 250
ThreadLimit 64
ThreadsPerChild 32
MaxRequestWorkers 8000
MaxConnectionsPerChild 10000
</IfModule>
SSL certificates
Create csr and private key on ubuntu:
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
CNAME domain name validation
- Create DNS record and delete domainname.com from host but leave a "." at the end
- Leave .comodoca.com but add a "." at the end of text box "Points"
- Go to mxtoolbox and do a CNAME lookup for your domain to see if it was published or not
Memcached
$sudo apt-get update
$sudo apt-get install memcached
$ps aux | grep memcached = find memcached running process, port, IP and username
$ /usr/share/memcached/scripts/memcached-tool 127.0.0.1:11211 stats = check if memcached get any hits and does his job
$echo stats | nc 127.0.0.1 11211 = check memcached parameters and status/functionality
$echo "stats" | nc -w 1 localhost 11211 | awk '$2 == "bytes" { print $2" "$3 }' = check memcached size
Command results redirection
To write the output of a command to a file, there are basically 10 commonly used ways.
Overview: