Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get update
- mkdir /root/.ssh
- 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
- wget -O /tmp/nginx_signing.key http://nginx.org/keys/nginx_signing.key
- apt-key add /tmp/nginx_signing.key
- echo "deb http://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee /etc/yum.repos.d/nginx.repo
- echo "deb-src http://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee -a /etc/yum.repos.d/nginx.repo
- apt-get remove apache2 -y; apt-get install nano -y; apt-get install nginx -y;
- echo 'worker_rlimit_nofile 3000;' >> /etc/nginx/nginx.conf
- 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
- nano /etc/nginx/conf.d/proxy.conf
- service nginx restart
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement