iis服务器助手广告广告
返回顶部
首页 > 资讯 > 精选 >Docker容器如何编译LNMP
  • 566
分享到

Docker容器如何编译LNMP

2023-06-22 00:06:34 566人浏览 薄情痞子
摘要

这篇文章主要讲解了“Docker容器如何编译LNMP”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Docker容器如何编译LNMP”吧!一、 项目描述使用Docker容器基于Centos镜像

这篇文章主要讲解了“Docker容器如何编译LNMP”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Docker容器如何编译LNMP”吧!

一、 项目描述

使用Docker容器基于Centos镜像分别制作Nginx镜像,mysql镜像和PHP镜像使用编译安装的方式,最后通过镜像启动成容器时使用container模式网络模式并访问到php测试页面

二、 Nginx镜像制作

//拉取centos镜像[root@Docker ~]# docker pull centosUsing default tag: latestlatest: Pulling from library/centosa1d0c7532777: Pull complete Digest: sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177Status: Downloaded newer image for centos:latestdocker.io/library/centos:latest[root@localhost ~]# docker imagesREPOSITORY   TAG       IMAGE ID       CREATED        SIZEcentos       latest    5d0da3Dc9764   2 months aGo   231MB// 运行centos镜像[root@localhost ~]# docker run -it --name nginx 5d0da3dc9764 /bin/bash[root@03ca6bdc0374 /]# // 传nginx安装包到容器中[root@localhost ~]# docker cp /usr/src/nginx-1.20.1.tar.gz 03ca6bdc0374:/usr/src/// 创建nginx账户[root@03ca6bdc0374 /]# useradd -r -M -s /sbin/nologin nginx// 安装依赖包[root@03ca6bdc0374 /]# yum -y install pcre-devel openssl openssl-devel gd-devel GCc gcc-c++ make// 创建nginx日志存放目录[root@03ca6bdc0374 /]# mkdir -p /var/log/nginx[root@03ca6bdc0374 /]# chown -R nginx.nginx /var/log/nginx/// 解压nginx包进行编译安装[root@03ca6bdc0374 /]# cd /usr/src/[root@03ca6bdc0374 src]# lsdebug  kernels  nginx-1.20.1.tar.gz[root@03ca6bdc0374 src]# tar xf nginx-1.20.1.tar.gz [root@03ca6bdc0374 src]# cd nginx-1.20.1[root@03ca6bdc0374 nginx-1.20.1]# ./configure \--prefix=/usr/local/nginx \--user=nginx \--group=nginx \--with-debug \--with-Http_ssl_module \--with-http_realip_module \--with-http_image_filter_module \--with-http_gunzip_module \--with-http_gzip_static_module \--with-http_stub_status_module \--http-log-path=/var/log/nginx/access.log \--error-log-path=/var/log/nginx/error.log[root@03ca6bdc0374 nginx-1.20.1]# make && make install// 设置环境变量[root@03ca6bdc0374 nginx-1.20.1]# echo 'export PATH=/usr/local/nginx/sbin:$PATH' > /etc/profile.d/nginx.sh[root@03ca6bdc0374 nginx-1.20.1]# source /etc/profile.d/nginx.sh // 查看监听端口[root@03ca6bdc0374 nginx-1.20.1]# nginx[root@03ca6bdc0374 nginx-1.20.1]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128           0.0.0.0:80          0.0.0.0:* [root@localhost ~]# curl 172.17.0.2 <!DOCTYPE html><html><head><title>Welcome to nginx!</title><style>    body {        width: 35em;        margin: 0 auto;        font-family: Tahoma, Verdana, Arial, sans-serif;    }</style></head><body><h2>Welcome to nginx!</h2><p>If you see this page, the nginx WEB server is successfully installed andworking. Further configuration is required.</p><p>For online documentation and support please refer to<a href="http://nginx.org/" rel="external nofollow" >nginx.org</a>.<br/>Commercial support is available at<a href="http://nginx.com/" rel="external nofollow" >nginx.com</a>.</p><p><em>Thank you for using nginx.</em></p></body></html>// 修改配置文件[root@03ca6bdc0374 nginx-1.20.1]# vim /usr/local/nginx/conf/nginx.conf......http {    include       mime.types;    default_type  application/octet-stream;    #log_fORMat  main  '$remote_addr - $remote_user [$time_local] "$request" '    #                  '$status $body_bytes_sent "$http_referer" '    #                  '"$http_user_agent" "$http_x_forwarded_for"';    #access_log  logs/access.log  main;    sendfile        on;    #tcp_nopush     on;    #keepalive_timeout  0;    keepalive_timeout  65;    #gzip  on;    server {        listen       80;        server_name  localhost;        #charset koi8-r;        #access_log  logs/host.access.log  main;        location / {            root   html;            index  index.php index.html index.htm;// 添加index.php        }        ......        location ~ \.php$ {            root           /var/www/html;        // php测试页面目录            fastcgi_pass   127.0.0.1:9000;                      // 在工作中这里要改为php服务器的地址            fastcgi_index  index.php;            fastcgi_param  SCRIPT_FILENAME  $Document_Root$fastcgi_script_name;            include        fastcgi_params;        }......daemon off;// 写最后面// 重新加载配置文件[root@03ca6bdc0374 nginx-1.20.1]# nginx -s reload[root@03ca6bdc0374 nginx-1.20.1]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128           0.0.0.0:80          0.0.0.0:*  // 创建nginx镜像[root@localhost ~]# docker commit -a '1826597954@qq.com' -c 'CMD ["/usr/local/nginx/sbin/nginx"]' -p 03ca6bdc0374 gaofan1225/nginx:v0.1sha256:453bfb1a13ae0aeba38e2e26ebe03e09544aa2ea8b477e45e4fb8aa51fec3e92[root@localhost ~]# docker imagesREPOSITORY         TAG       IMAGE ID       CREATED          SIZEgaofan1225/nginx   v0.1      453bfb1a13ae   16 seconds ago   575MBcentos             latest    5d0da3dc9764   2 months ago     231MB

三、 Mysql镜像制作

// 运行centos镜像[root@localhost ~]# docker imagesREPOSITORY         TAG       IMAGE ID       CREATED          SIZEgaofan1225/nginx   v0.1      453bfb1a13ae   16 seconds ago   575MBcentos             latest    5d0da3dc9764   2 months ago     231MB[root@localhost ~]# docker run -it --name mysql 5d0da3dc9764 /bin/bash[root@3ea39d4dfa8f /]# // 传mysql安装包到容器[root@localhost ~]# docker cp /usr/src/mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz 9b6741a9ef22:/usr/src/// 安装依赖包[root@9b6741a9ef22 /]# yum -y install ncurses-devel openssl-devel openssl cmake mariadb-devel ncurses-compat-libs[root@9b6741a9ef22 /]# yum -y install libaio*[root@9b6741a9ef22 /]# yum -y install nuMactl.x86_64// 创建mysql用户[root@9b6741a9ef22 /]# useradd -r -M -s /sbin/nologin mysql// 解压安装包[root@9b6741a9ef22 /]# cd /usr/src/[root@9b6741a9ef22 src]# lsdebug  kernels  mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz[root@9b6741a9ef22 src]# tar xf mysql-5.7.34-linux-glibc2.12-x86_64.tar.gz -C /usr/local/// 制作软链接,设置全校性[root@9b6741a9ef22 src]# cd /usr/local/[root@9b6741a9ef22 local]# lsbin    include  libexec                              shareetc    lib      mysql-5.7.34-linux-glibc2.12-x86_64  srcgames  lib64    sbin[root@9b6741a9ef22 local]# ln -sv mysql-5.7.34-linux-glibc2.12-x86_64/ mysql'mysql' -> 'mysql-5.7.34-linux-glibc2.12-x86_64/'[root@9b6741a9ef22 local]# chown -R mysql.mysql /usr/local/mysql*// 设置环境变量[root@9b6741a9ef22 local]# echo 'export PATH=/usr/local/mysql/bin:$PATH' > /etc/profile.d/mysql.sh[root@9b6741a9ef22 local]# source /etc/profile.d/mysql.sh[root@9b6741a9ef22 local]# echo $PATH/usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin// 制作头文件软链接[root@9b6741a9ef22 local]# ln -s /usr/local/mysql/include /usr/include/mysql// 创建帮助文档[root@9b6741a9ef22 local]# cat /etc/man_db.conf MANDATORY_MANPATH                       /usr/local/mysql/man// 创建库文件[root@9b6741a9ef22 local]# cat /etc/ld.so.conf.d/mysql.conf/usr/local/mysql/lib[root@9b6741a9ef22 local]# ldconfig// 创建数据存放目录[root@9b6741a9ef22 local]# mkdir -p /opt/data[root@9b6741a9ef22 local]# chown -R mysql.mysql /opt/data[root@9b6741a9ef22 local]# ls -l /opt/total 0drwxr-xr-x. 2 mysql mysql 6 Dec  4 01:31 data// 初始化数据库[root@9b6741a9ef22 local]# /usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --datadir=/opt/data/// 生成配置文件[root@9b6741a9ef22 local]# cat > /etc/my.cnf <<EOF[mysqld]basedir = /usr/local/mysqldatadir = /opt/dataSocket = /tmp/mysql.sockport = 3306pid-file = /opt/data/mysql.piduser = mysqlskip-name-resolveEOF// 配置mysql启动服务[root@9b6741a9ef22 local]# sed -ri 's#^(basedir=).*#\1/usr/local/mysql#g' /usr/local/mysql/support-files/mysql.server[root@9b6741a9ef22 local]# sed -ri 's#^(datadir=).*#\1/opt/data#g' /usr/local/mysql/support-files/mysql.server// 启动mysql服务[root@9b6741a9ef22 local]# /usr/local/mysql/support-files/mysql.server startStarting MySQL.Logging to '/opt/data/9b6741a9ef22.err'. SUCCESS! [root@9b6741a9ef22 local]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      80                  *:3306              *:* // 编写mysql启动脚本[root@9b6741a9ef22 local]# cd /[root@9b6741a9ef22 /]# cat /start.sh #!/bin/sh/usr/local/mysql/support-files/mysql.server start/bin/bash[root@9b6741a9ef22 /]# chmod +x /start.sh // 创建mysql镜像[root@localhost ~]# docker commit -a '1826597954@qq.com' -c 'CMD ["/bin/bash","/start.sh"]' -p 9b6741a9ef22 gaofan1225/mysql:v0.1sha256:7abe6fc819127b8ef3d9ac0ea3d24aadda1b189d739e4b53416530fc79db795f[root@localhost ~]# docker imagesREPOSITORY         TAG       IMAGE ID       CREATED          SIZEgaofan1225/mysql   v0.1      7abe6fc81912   10 seconds ago   3.81GBgaofan1225/nginx   v0.1      453bfb1a13ae   17 minutes ago   575MBcentos             latest    5d0da3dc9764   2 months ago     231MB

四、 PHP镜像制作

// 运行centos镜像[root@localhost ~]# docker imagesREPOSITORY         TAG       IMAGE ID       CREATED          SIZEgaofan1225/mysql   v0.1      7abe6fc81912   10 seconds ago   3.81GBgaofan1225/nginx   v0.1      453bfb1a13ae   17 minutes ago   575MBcentos             latest    5d0da3dc9764   2 months ago     231MB[root@localhost ~]# docker run -it --name php 5d0da3dc9764[root@c6882394804e /]# // 把php安装包和依赖包传到容器中[root@localhost ~]# docker cp /usr/src/php-8.0.12.tar.gz c6882394804e:/usr/src/[root@localhost ~]# docker cp /usr/src/oniguruma-devel-6.8.2-2.el8.x86_64.rpm c6882394804e:/usr/src/// 下载epel源和依赖包[root@c6882394804e /]# yum -y install epel-release[root@c6882394804e /]# yum -y install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel  libicu-devel libjpeg libjpeg-devel libpng libpng-devel openldap-devel  pcre-devel freetype freetype-devel gmp   gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt      libxslt-devel mhash mhash-devel php-mysqlnd libzip-devel libsqlite3x libsqlite3x-devel oniguruma libzip-devel gcc gcc-c++ make[root@c6882394804e /]# yum -y install libcurl-devel// 解压php安装包进行编译安装[root@c6882394804e /]# cd /usr/src/[root@c6882394804e src]# ls debug    oniguruma-devel-6.8.2-2.el8.x86_64.rpmkernels  php-8.0.12.tar.gz[root@c6882394804e src]# yum -y install oniguruma-devel-6.8.2-2.el8.x86_64.rpm [root@c6882394804e src]# tar xf php-8.0.12.tar.gz [root@c6882394804e src]# cd php-8.0.12[root@c6882394804e php-8.0.12]#  ./configure --prefix=/usr/local/php8 \--with-config-file-path=/etc \--enable-fpm \--disable-debug \--disable-rpath \--enable-shared \--enable-soap \--with-openssl \--enable-bcmath \--with-iconv \--with-bz2 \--enable-calendar \--with-curl \--enable-exif \--enable-ftp \--enable-gd \--with-jpeg \--with-zlib-dir \--with-freetype \--with-gettext \--enable-mbstring \--enable-pdo \--with-mysqli=mysqlnd \--with-pdo-mysql=mysqlnd \--with-readline \--enable-shmop \--enable-simplexml \--enable-sockets \--with-zip \--enable-mysqlnd-compression-support \--with-pear \--enable-pcntl \--enable-posix[root@c6882394804e php-8.0.12]# make && make install// 设置环境变量[root@c6882394804e php-8.0.12]# echo 'export PATH=/usr/local/php8/bin:$PATH' > /etc/profile.d/php.sh[root@c6882394804e php-8.0.12]# source /etc/profile.d/php.sh// 配置php-fpm[root@c6882394804e php-8.0.12]# cp php.ini-production /etc/php.inicp: overwrite '/etc/php.ini'? y[root@c6882394804e php-8.0.12]# cp sapi/fpm/init.d.php-fpm  /etc/init.d/php-fpm[root@c6882394804e php-8.0.12]# chmod +x /etc/rc.d/init.d/php-fpm[root@c6882394804e php-8.0.12]# cd /usr/local/php8/etc/[root@c6882394804e etc]# cp php-fpm.conf.default php-fpm.conf[root@c6882394804e etc]# cd php-fpm.d/[root@c6882394804e php-fpm.d]# cp www.conf.default www.conf// 查看监听端口[root@c6882394804e php-fpm.d]# /usr/local/php8/sbin/php-fpm [root@c6882394804e php-fpm.d]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128         127.0.0.1:9000        0.0.0.0:*  // 编写启动脚本[root@c6882394804e php-fpm.d]# cd /[root@c6882394804e /]# cat /start.sh #!/bin/sh/usr/local/php8/sbin/php-fpm/bin/bash[root@c6882394804e /]# chmod +x /start.sh// 创建测试页面[root@c6882394804e /]# mkdir -p /var/www/html[root@c6882394804e /]# cd /var/www/html/[root@c6882394804e html]# vi index.php[root@c6882394804e html]# cat index.php <?php  phpinfo();?>// 制作php镜像[root@localhost ~]# docker commit -a '1826597954@qq.com' -c 'CMD ["/bin/bash","/start.sh"]' -p c6882394804e gaofan1225/php:v0.1sha256:9bb6f6ec5b7cff9b3e92bc3b2f8eb2542c963643e74642be7eace465bc2225f9[root@localhost ~]# docker imagesREPOSITORY         TAG       IMAGE ID       CREATED          SIZEgaofan1225/php     v0.1      9bb6f6ec5b7c   15 seconds ago   1.53GBgaofan1225/mysql   v0.1      7abe6fc81912   2 hours ago      3.81GBgaofan1225/nginx   v0.1      453bfb1a13ae   2 hours ago      575MBcentos             latest    5d0da3dc9764   2 months ago     231MB

五、 运行LNMP

使用container模式网络模式

[root@localhost ~]# docker ps -aCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES// 启动nginx容器[root@localhost ~]# docker run -dit --name nginx -p 80:80 453bfb1a13aea8ff680fc2bb61118d10ab1926fffed9c4975f72834d1628bf0cfff851bd7935[root@localhost ~]# docker psCONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS                               NAMESa8ff680fc2bb   453bfb1a13ae   "/usr/local/nginx/sb…"   16 seconds ago   Up 14 seconds   0.0.0.0:80->80/tcp, :::80->80/tcp   nginx[root@localhost ~]# docker exec -it a8ff680fc2bb /bin/bash[root@a8ff680fc2bb /]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128           0.0.0.0:80          0.0.0.0:* // 启动mysql容器[root@localhost ~]# docker run -dit --name mysql --network container:a8ff680fc2bb 7abe6fc81912e776f9e93c6ca0d8fba53957cfa9e85105913fcbe53a9400c2657127eb049c2d[root@localhost ~]# docker psCONTAINER ID   IMAGE          COMMAND                  CREATED         STATUS         PORTS                               NAMESe776f9e93c6c   7abe6fc81912   "/bin/bash /start.sh"    9 seconds ago   Up 8 seconds                                       mysqla8ff680fc2bb   453bfb1a13ae   "/usr/local/nginx/sb…"   2 minutes ago   Up 2 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp   nginx[root@localhost ~]# docker exec -it e776f9e93c6c /bin/bash[root@a8ff680fc2bb /]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128           0.0.0.0:80          0.0.0.0:*                                                                 LISTEN 0      80                  *:3306              *:*    // 启动php容器[root@localhost ~]# docker run -dit --name php --network container:a8ff680fc2bb 9bb6f6ec5b7c e80155914f858910ffb678a7d294e68804f735bf9a52efd21a036f7abee23bbe[root@localhost ~]# docker psCONTAINER ID   IMAGE          COMMAND                  CREATED              STATUS              PORTS                               NAMESe80155914f85   9bb6f6ec5b7c   "/bin/bash /start.sh"    4 seconds ago        Up 3 seconds                                            phpe776f9e93c6c   7abe6fc81912   "/bin/bash /start.sh"    About a minute ago   Up About a minute                                       mysqla8ff680fc2bb   453bfb1a13ae   "/usr/local/nginx/sb…"   4 minutes ago        Up 4 minutes        0.0.0.0:80->80/tcp, :::80->80/tcp   nginx[root@localhost ~]# docker exec -it e80155914f85 /bin/bash[root@a8ff680fc2bb /]# ss -antlState  Recv-Q Send-Q  Local Address:Port   Peer Address:Port Process                                                      LISTEN 0      128         127.0.0.1:9000        0.0.0.0:*                                                                 LISTEN 0      128           0.0.0.0:80          0.0.0.0:*                                                                 LISTEN 0      80                  *:3306              *:*

六、 网页查看

Docker容器如何编译LNMP

感谢各位的阅读,以上就是“Docker容器如何编译LNMP”的内容了,经过本文的学习后,相信大家对Docker容器如何编译LNMP这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是编程网,小编将为大家推送更多相关知识点的文章,欢迎关注!

--结束END--

本文标题: Docker容器如何编译LNMP

本文链接: https://www.lsjlt.com/news/301586.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Docker容器如何编译LNMP
    这篇文章主要讲解了“Docker容器如何编译LNMP”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Docker容器如何编译LNMP”吧!一、 项目描述使用Docker容器基于centos镜像...
    99+
    2023-06-22
  • Docker容器编译LNMP的实现示例
    目录一、 项目描述二、 Nginx镜像制作三、 Mysql镜像制作四、 PHP镜像制作五、 运行LNMP六、 网页查看一、 项目描述 使用Docker容器基于centos镜像分别制作...
    99+
    2024-04-02
  • lnmp环境中如何编译安装php-5.3.27.tar.gz
    小编给大家分享一下lnmp环境中如何编译安装php-5.3.27.tar.gz ,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!一...
    99+
    2024-04-02
  • Docker下如何部署lnmp
    小编给大家分享一下Docker下如何部署lnmp,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!拉取一个centos镜像//下载centos镜像[root@loca...
    99+
    2023-06-21
  • docker如何搭建lnmp环境
    要在Docker中搭建LNMP环境(即Linux、Nginx、MySQL和PHP),可以按照以下步骤进行操作:1. 安装Docker...
    99+
    2023-08-23
    docker lnmp
  • 怎么使用Docker容器搭建android编译环境
    本篇内容介绍了“怎么使用Docker容器搭建android编译环境”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!1 部署容器1.1 手动部署...
    99+
    2023-07-02
  • java如何获取编译内容
    在Java中,可以使用以下方法获取编译内容:1. 使用反射机制获取类的信息:可以使用`Class`类的相关方法来获取类的信息,包括类...
    99+
    2023-09-20
    java
  • Docker容器搭建android编译环境的实践记录
    目录1 部署容器1.1 手动部署1.1.1 配置docker1.1.2 启动容器1.1.3 配置环境1.2 Dockerfile2 镜像管理3 容器管理3.1 每个用户各用容器3.1...
    99+
    2024-04-02
  • 全编译部署LNMP平台+Wordpress内容管理器(附安装包和脚本)
    企业最常用的两种web架构就是LAMP和LNMP,今天就用编译的方式介绍一下LNMP的安装步骤,使用wordpress的CMS做网站的内容管理器 LAMP=Linux+Apache+Mysql+PHP LNMP=Linux+Nginx+My...
    99+
    2023-09-06
    php mysql 服务器 nginx linux
  • java如何获取编译的内容
    要获取Java编译后的内容,可以使用Java反射机制来获取类的信息和方法的信息。下面是一个获取类信息和方法信息的示例代码:```ja...
    99+
    2023-09-06
    java
  • 如何理解C++编译器编译功能
    如何理解C++编译器编译功能,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。下面深度讲解C++中的大规模C++编译器,C++编译器具有很强的复杂性,并且源程序的行数也是非常多...
    99+
    2023-06-17
  • 如何使用java编译器进行编译
    使用Java编译器进行编译可以通过以下步骤:1. 确保已经安装了Java Development Kit (JDK)。可以通过在命令...
    99+
    2023-09-06
    java
  • 在 Alpine Docker 容器的 Go 编译时遇到“loadinternal:cgo runtime not found”错误
    珍惜时间,勤奋学习!今天给大家带来《在 Alpine Docker 容器的 Go 编译时遇到“loadinternal:cgo runtime not found”错误》,正文内容主要涉及到等等,如...
    99+
    2024-04-05
  • Docker如何快速搭建LNMP环境(最新)
    前言 提示:这里可以添加本文要记录的大概内容: 例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。 提示:以下是...
    99+
    2024-04-02
  • 如何创建Docker容器
    本篇内容介绍了“如何创建Docker容器”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!GIScript2016是支持Python3的地理空间...
    99+
    2023-06-19
  • 如何删除docker容器
    在docker中删除容器的方法:1.使用-s -a命令列出容器;2.使用stop命令停止容器;3.执行docker rm命令删除容器;具体步骤如下:首先,在docker中使用-s -a命令列出所有容器;# docker ...
    99+
    2024-04-02
  • Docker如何连接容器
    这篇文章给大家分享的是有关Docker如何连接容器的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。连接容器docker run -dti --name...
    99+
    2024-04-02
  • Docker如何停止容器
    这篇文章主要介绍了Docker如何停止容器,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。停止容器docker stop ...
    99+
    2024-04-02
  • Docker如何删除容器
    小编给大家分享一下Docker如何删除容器,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!删除容器docker rm&n...
    99+
    2024-04-02
  • Mac中Docker如何配置LNMP开发环境
    小编给大家分享一下Mac中Docker如何配置LNMP开发环境,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!Mac下Docker配置LNMP开发环境的方法:1、安装Docker;2、配置安装环境;3、安装Mysql5.7;...
    99+
    2023-06-20
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作