标签:files art ror https image org auto c++ oca
下载地址:https://jenkins.io/zh/download/
复制下载地址: wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war
第一次启动,需要填入密码,按照提示的地址去查找。然后下载相应的插件即可。
下载nginx需要的依赖
yum install -y gcc gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
nginx下载地址:http://nginx.org/en/download.html
mkdir -p /usr/local/nginx #创建目录,将下载的ngix包放到该目录下,并解压
tar -zxf nginx-1.17.8.tar.gz
cd nginx-1.17.8
./configure --prefix=/usr/local/nginx # 检查平台安装环境
make #编译
make install #安装
./usr/local/nginx/sbin/nginx #启动
./usr/local/nginx/sbin/nginx -s reload #重新加载
./usr/local/nginx/sbin/nginx -s stop #停止
验证nginx配置成功,浏览器访问http://IP地址/,响应如下,表示配置成功
cd /usr/local/nginx/nginx-1.17.8/conf
touch myfiles.conf
vi myfiles.conf
myfiles.conf的内容如下
server {
listen 80
location /myfiles {
alias /data/otherApp/;
autoindex on;
autoindex_exact_size off;
}
}
验证
./usr/local/nginx/sbin/nginx -s reload
curl "http://IP地址/myfiles/nginx-1.17.8.tar.gz" > test.tar.gz
参考:
https://blog.csdn.net/oscar999/article/details/80008509
https://blog.csdn.net/sqlquan/article/details/101099850
标签:files art ror https image org auto c++ oca
原文地址:https://www.cnblogs.com/csj2018/p/12264576.html