Skip to content

Instantly share code, notes, and snippets.

@payamomrani
Last active April 12, 2020 12:41
Show Gist options
  • Save payamomrani/6066146e6b45df7d765d401cc10d08b3 to your computer and use it in GitHub Desktop.
Save payamomrani/6066146e6b45df7d765d401cc10d08b3 to your computer and use it in GitHub Desktop.
//Get Number OF All Http Connections
netstat -atnpl | grep :443 | wc -l
//Get Number Of Live Connection
netstat -atnpl | grep :443 | grep -i estab | wc -l
// Apache Benchmark
ab -n 2000 -c 200
//Strace PID
strace -f -t -o strace.output -p 29028
//Install PHP
https://www.rosehosting.com/blog/how-to-install-php-7-3-on-ubuntu-16-04/
chown -R www-data:www-data /path/to/webserver/www
chmod -R g+rw /path/to/webserver/www
//Create SSL
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/asd.dev.key -out /etc/ssl/certs/asd.dev.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment