Last active
February 22, 2018 06:10
-
-
Save Tapan/87c0253cf5fd7edc11eea9f2314c4e8c to your computer and use it in GitHub Desktop.
Linux
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
#add non-root user with root privileges | |
sudo adduser linux | |
sudo passwd linux | |
linuxpasswd | |
sudo visudo | |
linux ALL=(ALL) ALL | |
#Nginx | |
start nginx | |
sudo /opt/nginx/sbin/nginx | |
shutting down | |
ps auxw | grep nginx | |
sudo kill pid | |
OR | |
sudo kill $(cat /opt/nginx/logs/nginx.pid) | |
OR | |
sudo /opt/nginx/sbin/nginx -s stop | |
Kill the address :80 already in use | |
sudo fuser -k 80/tcp | |
##References | |
#Linux command sheet | |
https://www.linuxtrainingacademy.com/wp-content/uploads/2016/12/LinuxCommandLineCheatSheet.pdf?__s=18ywpmczusmxjho5z9ar | |
## Public key download fix | |
add proxy to the below command | |
sudo apt-key adv --keyserver-options http-proxy=http://web-proxy.sgp.hp.com:8080/ --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
## Increase file size | |
https://serverfault.com/questions/394842/how-can-i-increase-space-on-the-filesystem-linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment