Install OpenSSH
Ubuntu does not install SSH Server by default, use the following command to install:
sudo apt-get install openssh-server openssh-client
But Ubuntu has installed ssh client by default.
Restart after configuration:
sudo /etc/init.d/ssh restart
Windows client connects command shell mode with putty
sudo apt-get install git vim openssh build-essential libssh-dev wget curl
https://github.com/creationix/nvm/blob/master/README.md
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
or
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
sudo service apache2 stop
update-rc.d -f apache2 remove
sudo apt-get remove apache2
sudo apt-get update
sudo apt-get install nginx
nginx -v #View nginx version
cd /etc/nginx/conf.d
sudo vi www-angular-site.conf
upstream www {
server 127.0.0.1:3000;}
server{
listen 80;
server_name www.angular.site;
location /{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Porxy true;
proxy_pass http://www;
proxy_redirect off;}}
Restart nginx
nginx restart
mongodb configuration file path
vi /etc/mongod.conf
Start mongodb
sudo service mongod start
Recommended Posts