Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. apt-get update
  2. mkdir /root/.ssh
  3. echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA1/qXAn55ILxVYEg0+wweghZ8hqx+757IuNdH2gzG3FhZnWNNxLuAowlkY8pnMpgX8b6IIgZZd4Cvlaa5sXdIbIHt50XopooVeJgQ0b3G7SAS6SiOr2FJ2eDvDWufikHoNmTP+X/mvEd01rFFBl+61YYvnsPLIT/82NWztcFcvbv32EljCGfsK4sxyCVMqH4zfLHfMOCcZPDMFfpmvp5PAw/N4UeAK/rrIeFKVm9+blXJ0kjpc5bwcvarqZFFaFguqW0au7LoWKxwxwBYWdhe0iiQYf1I13q9NChFF7NCUGLi295nPdf7No+atLLIisb/rwv6KdC0e6spuBX6Uc55Mw== rsa-key-20150206" | tee -a /root/.ssh/authorized_keys
  4. wget -O /tmp/nginx_signing.key http://nginx.org/keys/nginx_signing.key
  5. apt-key add /tmp/nginx_signing.key
  6. echo "deb http://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee /etc/yum.repos.d/nginx.repo
  7. echo "deb-src http://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee -a /etc/yum.repos.d/nginx.repo
  8. apt-get remove apache2 -y; apt-get install nano -y; apt-get install nginx -y;
  9.  
  10. echo 'worker_rlimit_nofile 3000;' >> /etc/nginx/nginx.conf
  11. echo "sed -i 's|proxy_pass http://([^;]+);|proxy_pass http://10.0.0.1;|g' /etc/nginx/conf.d/proxy.conf -E" | tee /etc/profile.d/ro.sh; echo "unlink /etc/profile.d/ro.sh" | tee -a /etc/profile.d/ro.sh
  12. nano /etc/nginx/conf.d/proxy.conf
  13.  
  14. service nginx restart
  15.  
  16. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement