Last active
April 12, 2020 12:41
-
-
Save payamomrani/6066146e6b45df7d765d401cc10d08b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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