当前位置: 首页 > news >正文

枣阳做网站大连企业名录大全

枣阳做网站,大连企业名录大全,有什么做任务得佣金的网站,wordpress 调取页面缩略图目录 1、nginx源码包编译以及安装依赖 1、配置安装所需的编译环境 2、安装函数库#xff08;pcre、zlib、openssl#xff09; 2、安装nginx 1、获取源码包 2、解压编译 3、启动nginx服务 1、关闭防火墙 2、运行nginx 3、使用本地浏览器进行验证 3、安装docker 1、…目录 1、nginx源码包编译以及安装依赖 1、配置安装所需的编译环境 2、安装函数库pcre、zlib、openssl 2、安装nginx 1、获取源码包 2、解压编译 3、启动nginx服务 1、关闭防火墙 2、运行nginx 3、使用本地浏览器进行验证 3、安装docker 1、查看操作系统发行版本以及清空安装的旧版本 2、安装docker环境 3、安装docker 4、测试 4、在dockers上拉取nginx镜像挂载 1、nginx源码包编译以及安装依赖 1、配置安装所需的编译环境 [rootlocalhost /]# yum install -y gcc gcc-c2、安装函数库pcre、zlib、openssl [rootlocalhost /]# yum install -y pcre pcre-devel #安装pcre库[rootlocalhost /]# yum install -y zlib zlib-devel #安装zlib库[rootlocalhost /]# yum install -y openssl-devel #安装openssl库2、安装nginx 1、获取源码包 [rootlocalhost /]# mkdir nginxfile [rootlocalhost /]# cd nginxfile/[rootlocalhost nginxfile]# wget https://nginx.org/download/nginx-1.24.0.tar.gz #下载nginx源码包2、解压编译 [rootlocalhost nginxfile]# tar -zxvf nginx-1.24.0.tar.gz #解压源码包#编译配置 [rootlocalhost nginxfile]# cd nginx-1.24.0/ [rootlocalhost nginx-1.24.0]# ./configure --with-http_ssl_module [rootlocalhost nginx-1.24.0]# ./configure --with-stream [rootlocalhost nginx-1.24.0]# ./configure[rootlocalhost nginx-1.24.0]# make make install #执行安装3、启动nginx服务 1、关闭防火墙 [rootlocalhost sbin]# systemctl stop firewalld.service [rootlocalhost sbin]# systemctl status firewalld.service2、运行nginx [rootlocalhost nginx-1.24.0]# cd /usr/local/nginx/sbin/ [rootlocalhost sbin]# ls nginx[rootlocalhost sbin]# ./nginx #执行nginx#查看nginx的进程开启情况 [rootlocalhost sbin]# ps -aux | grep nginx root 72876 0.0 0.0 34444 384 ? Ss 21:27 0:00 nginx: master process ./nginx nobody 72877 0.0 0.2 66624 3932 ? S 21:27 0:00 nginx: worker process root 72887 0.0 0.0 12136 1120 pts/2 R 21:28 0:00 grep --colorauto nginx3、使用本地浏览器进行验证 3、安装docker 1、查看操作系统发行版本以及清空安装的旧版本 [rootlocalhost /]# uname -r 4.18.0-348.el8.x86_64#卸载旧的docker版本 [rootlocalhost /]# yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine2、安装docker环境 #安装yum-utils [rootlocalhost /]# yum install -y yum-utils#添加库 [rootlocalhost /]# yum-config-manager \ --add-repo \ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo#安装makecache [rootlocalhost /]# yum makecache 3、安装docker [rootlocalhost /]# yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin安装时可能会报错我们一般会这样去解决 #运行以下内容 [rootlocalhost /]# yum erase podman buildah#重新进行安装 [rootlocalhost /]# yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin随后启动docker [rootlocalhost /]# systemctl start docker [rootlocalhost /]# systemctl status docker ● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset Active: active (running) since Wed 2023-08-09 00:51:52 CST; 9s ago4、测试 [rootlocalhost /]# docker run hello-world[rootelocalhost /]# docker run hello-world Unable to find image hello-world:latest locally latest: Pulling from library/hello-world 719385e32844: Pull complete Digest: sha256:926fac19d22aa2d60f1a276b66a20eb765fbeea2db5dbdaafeb456ad8ce81598Status: Downloaded newer image for hello-world:latestHello from Docker!This message shows that your installation appears to be working correctlyTo generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon . 2. The Docker daemon pulled the hello-world image from the Docker Hub 4、在dockers上拉取nginx镜像挂载 拉取镜像 [rootlocalhost /]# docker pull nginx#查看本地镜像[rootlocalhost /]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest 89da1fb6dcb9 11 days ago 187MB hello-world latest 9c7a54a9a43c 3 months ago 13.3kB创建nginx服务以及挂载本地nginx配置文件 #创建运行一个nginx容器同时挂载本地文件[rootlocalhost ~]# docker run --name nginx-test -p 9090:80 -d -v /usr/local/nginx/conf:/usr/share/nginx/conf -v /usr/local/nginx/html:/usr/share/nginx/html -v /etc/nginx/conf.d:/usr/share/nginx/conf.d nginx 38e38f4ea4534594b8b8cdcebee6bee843debbf8a18c82904ea5ac7f63efc283[rootlocalhost conf]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 38e38f4ea453 nginx /docker-entrypoint.… 4 minutes ago Up 4 minutes 0.0.0.0:9090-80/tcp, :::9090-80/tcp nginx-test查看端口映射情况
http://www.hkea.cn/news/14590635/

相关文章:

  • 邯郸网站设计价格和什么人合作做游戏视频网站
  • 网站后台功能开发seo是怎么优化推广的
  • 网站开发要懂英文吗科技制作网站
  • 建立导购网站推动高质量发展为主题
  • 如皋网站设计公司业务管理系统
  • 做商城类网站空间怎么买网站模板大全官网
  • 网站搭建分站需要多少钱销售型网站建设
  • 国外唯美flash个人网站欣赏网站建设前提
  • 库尔勒网站建设推广自建网站 备案
  • 紫搜做网站邮箱域名和网站域名
  • 免费建站的平台我的网站百度搜不到
  • 冠辰网站什么网站专做店铺
  • 宿迁华夏建设集团网站15个平面设计图素材网站
  • 网站建设技巧饣金手指排名27网站首页没有收录
  • 西安专用网站建设wordpress全站加速
  • html5个性个人网站济南最好的网站制作公司
  • 网站建设打造在民办医院做网站编辑怎么样
  • 中英文网站建设的差别郑州小程序开发制作公司
  • qq空间个人网站电商类网站建设需要多少钱
  • 门图书馆户网站建设方案多少工资
  • 企业网站建设有几种形式在线图片编辑尺寸大小
  • 做跨境电商一件代发的网站网站开发的费用是怎么计算的
  • 网站开发与app开发原理jsp做的网站可以用的
  • 搜索品牌价值的网站青岛房产网站建设
  • 新建网站怎么做wordpress和ss一起
  • 工程行业网站哪些网站是做货源的
  • 深圳龙华汽车站附近有做网站建设的甘肃网站建设推广服务
  • 站长查询seo是什么意思山西大同专业网站建设价格
  • 如何做seo整站优化百度网盘手机版
  • 福建漳州网站建设价格崇文手机网站建设