加入收藏 | 设为首页 | 会员中心 | 我要投稿 新余站长网 (https://www.0790zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

TeamCity : 安装 Server

发布时间:2021-01-31 23:39:25 所属栏目:Linux 来源:网络整理
导读:$ -xf TeamCity- . . .gz -C ~/ $ ./teamcity-server. start #!/bin/ /etc/init.d/teamcity - startup script =/usr/lib/jdk1. =${JAVA_HOME}/ =.:${JAVA_HOME}/lib:${JRE_HOME}/ =${JAVA_HOME}/ = =-Djava.awt.headless= $ -stop-daemon --start -c tcuser

server {
listen <span style="color: #800080;">80<span style="color: #000000;">;
server_name localhost;
proxy_read_timeout <span style="color: #800080;">1200<span style="color: #000000;">;
proxy_connect_timeout <span style="color: #800080;">240<span style="color: #000000;">;
client_max_body_size <span style="color: #800080;">0<span style="color: #000000;">;

location </span>/<span style="color: #000000;"&gt; {
    proxy_pass          http:</span><span style="color: #008000;"&gt;//</span><span style="color: #008000;"&gt;localhost:8111;</span>
    proxy_http_version  <span style="color: #800080;"&gt;1.1</span><span style="color: #000000;"&gt;;
    proxy_set_header    X</span>-Forwarded-<span style="color: #000000;"&gt;For $remote_addr;
    proxy_set_header    Host $server_name:$server_port;
    proxy_set_header    Upgrade $http_upgrade;
    proxy_set_header    Connection $connection_upgrade;
}

}

$ -s /etc/nginx/sites-available/teamcity /etc/nginx/sites-enabled/ /etc/nginx/sites-enabled/default

$ /etc/init.d/nginx reload

(编辑:新余站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读