mac ssh连接服务器 设置配置

2018-12-19  本文已影响0人  暴烈的海胆

本文主要介绍在Mac OS X中,使用终端来执行SSH远程登录

 ssh root@远程服务器域名
成功连接服务器.jpeg
[root@77 local]# cd /usr/local/nginx-1.15.0/html
[root@77 html]# git clone git@1.0.0.0:o2o-javascript/hotel-manage-platform.git
克隆追踪项目.jpeg

克隆远程项目需要配置相应的ssh

git checkout develop
操作过程.jpeg

-7 、配置nginx 代理配置 nginx.conf /usr/local/nginx-1.15.0/conf/nginx.conf

server {
        listen    8081; //监听前端项目端口
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
           proxy_pass   http://127.0.0.1:8080; //对应服务器
            index  index.html index.htm;

        }

** 配置成功 访问地址 服务器ip:8081

nginx -c  /usr/local/nginx-1.15.0/conf/nginx.conf  (nginx配置文件地址)
上一篇 下一篇

猜你喜欢

热点阅读