4月 17, 2020 - Linux    centos6.9安装gitlab-runner已关闭评论

centos6.9安装gitlab-runner

1:下载gitlab-runner

sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64

2:添加可执行权限

sudo chmod +x /usr/local/bin/gitlab-runner

3.创建gitlab Ci 用户

sudo useradd --comment 'GitLab[......]

Read more

3月 20, 2020 - Linux, 开发笔记    Nginx跨域处理已关闭评论

Nginx跨域处理

1:nginx服务端配置:

方便复制:

#add_header ‘Access-Control-Allow-Origin’  ‘$http_origin’;

#add_header ‘Access-Control-Allow-Credentials’ ‘true’;

#add_header ‘Access-Control-Allow-Methods’ ‘GET,POST,DELETE,PUT,OPTIONS’;

#add_header ‘Access-Control-Allow-Headers’ ‘DNT,web-token,x-secret-key,ap[……]

Read more

页面:«1...21222324252627...44»