Tag: 阿帕奇

无法连接到Apache Docker容器

我有一台服务器在端口80上运行Apache(不在Docker中)。 我想创build一个Docker实例,它也运行在主机端口2000上侦听的Apache。 我已经运行了以下命令来创buildDebian Docker实例,转发stream量,并在实例上安装Apache。 docker run –name WebServer -p 2000:80 -t -i debian:latest /bin/bash apt-get update && apt-get install apache2 完成所有这些之后,我已经validation主机上的端口已打开(使用Nmap扫描)。 尝试连接到127.0.0.1:2000都被重置,并没有实际转发到Docker连接。 我错过了什么?

apache2configuration文件的位置

我build立了一个基于httpd:2.4映像的docker容器。 我看到apacheconfiguration文件是/usr/local/apache2/conf/httpd.conf 。 在我的Ubuntu 16.04上,我安装了apache 2,configuration文件位于/etc/apache2/ (带有“sites-enabled&sites-available”结构)。 我不明白 – 由于版本的不同, configuration结构不同吗?

从定制的dockerfile到kubernetes部署一个apache启动

我有一个docker文件,我build立一个Apache Web服务器与一些自定义configuration等 执行Dockerfile我使用Kubernetes创build一个可以在部署yaml文件中使用的映像。 一切正常,但部署后,我的Apache服务是在每个容器的每个容器中。 很明显,我可以访问每个容器来执行一个/etc/init.d/apache2启动,但这个解决scheme不是很聪明.. 所以我的问题是:我怎样才能设置我的自定义Apache在部署yaml文件的执行过程中运行? PS:我试过这个解决scheme:用dockerfile创build一个docker容器,然后我访问它,然后启动apache。 然后我从这个容器(dockerfile commit + gcloud image push)创build了一个新的映像,但是当我部署应用程序时,我总是发现apache down

Apache使用Azure web应用程序logging容器

我正在使用apache2上的PHP应用程序自定义图像容器的Azure Web应用程序。 我能够正确运行它,但无法find从Web应用程序获取apache访问和错误日​​志的方法。 如何获得这些日志? 我们使用Docker Hub的官方PHP镜像作为基础镜像: https : //hub.docker.com/_/php/

在Docker或物理主机上托pipeWordPress

我打算为客户创build一个共享的WordPress托pipe系统。 所需的服务是:PHP,MySQL / MariaDB,SFTP(Nginx / Apache:哪个更好,更快,更安全?) 如果我打算使用Docker,那么应用程序将被安装在Docker主机上的一个卷上,容器将包含PHP文件。 如果在物理的CentOS或Ubuntu主机上,那么所有的网站将共享相同的PHP文件。 Nginx / Apache将成为所有网站中的一个,而一个数据库引擎则为所有网站提供服务。 有没有人做过这种情况? 你有什么build议,在这两种情况下的优点和缺点是什么。

在Docker容器上启动Apache

我正在和Docker一起玩Apache和PHP来构build图像,但是Apache的antomatic启动有一个问题。 这是Dockerfile: FROM ubuntu:16.04 RUN apt-get update # Apache RUN apt-get -y install apache2 # Apache config RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf RUN apache2ctl configtest RUN a2dissite 000-default COPY otpuskatame_backend.conf /etc/apache2/sites-available RUN a2ensite otpuskatame_backend RUN a2dissite 000-default RUN rm /etc/apache2/sites-available/000-default.conf # PHP RUN apt-get -y install php libapache2-mod-php php-mcrypt # Load container CMD service […]

卡夫卡用docker使用kafka-rb设置客户端

对卡夫卡来说,我是完全陌生的,而且我也遇到了麻烦。 我使用docker-compose为docker设置了“wurstmeister / kafka-docker”: zookeeper: image: wurstmeister/zookeeper ports: – "2181:2181" kafka: image: wurstmeister/kafka ports: – "9092:9092" links: – zookeeper:zk environment: KAFKA_ADVERTISED_HOST_NAME: 192.168.59.103 # KAFKA_AUTO_CREATE_TOPCIS_ENABLE: 'true' KAFKA_CREATE_TOPICS: "events:1:1" volumes: – /var/run/docker.sock:/var/run/docker.sock 对于生产者和消费者,我使用ruby“kafka-rb”。 制片人: require 'kafka' producer = Kafka::Producer.new({ host: "192.168.59.103", port: 9092, topic: "events" }) 1000000.times do |i| message = Kafka::Message.new("Message #{i}") producer.push(message) end 消费者: 要求'kafka' […]

Apache无法确定docker容器上的servername

我正在尝试为现有站点设置定制的泊坞窗容器。 要做到这一点,我想提供一个ServerName我自己的自定义vhostconfiguration。 但是,当我尝试添加自定义vhost configuration并重新启动Apache时,我得到了Apache无法确定全局名称的警告: Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message 重要的是,当我login到容器的shell并手动运行service apache2 restart我不会再收到这个警告。 我怎样才能抑制构build? 我应该以其他方式将作曲者提供给composer php吗? 这是我docker-compose.yml是这样的: version: '3' […]

我怎么能在minimesos中使用marathon启动kafka调度器?

我正在尝试使用docker容器启动kafka-mesos框架调度程序,详见https://github.com/mesos/kafka/tree/master/src/docker#running-image-in-marathon,使用Marathon实现在minimesos(我想添加一个minimesos标签,但没有点)运行。 该应用程序已注册,可以在Marathon控制台中看到,但仍处于等待状态,Deployment GUI表示正在尝试ScaleApplication。 我试过在马拉松和mesos-master容器中寻找/ var / log文件,可能会说明为什么会发生这种情况。 最初我以为它可能是因为图像没有拉,所以我添加了"forcePullImage": true的JSON应用程序configuration,但它仍然等待。 我也把networking从HOST改成了BRIDGE,假设这与http://minimesos.readthedocs.org/en/latest/上的minimesos警告是一致的。 在mesos日志中,我确实看到: I0106 20:07:15.259790 15 master.cpp:4967] Sending 1 offers to framework 5e1508a8-0024-4626-9e0e-5c063f3c78a9-0000 (marathon) at scheduler-575c233a-8bc3-413f-b070-505fcf138ece@172.17.0.6:39111 I0106 20:07:15.266100 9 master.cpp:3300] Processing DECLINE call for offers: [ 5e1508a8-0024-4626-9e0e-5c063f3c78a9-O77 ] for framework 5e1508a8-0024-4626-9e0e-5c063f3c78a9-0000 (marathon) at scheduler-575c233a-8bc3-413f-b070-505fcf138ece@172.17.0.6:39111 I0106 20:07:15.266633 9 hierarchical.hpp:1103] Recovered ports(*):[33000-34000]; cpus(*):1; mem(*):1001; disk(*):13483 (total: ports(*):[33000-34000]; cpus(*):1; mem(*):1001; […]