在ubuntu最新docker映象上安裝apache2的幾個坑
- [email protected]:/app# exec apache2 -D FOREGROUND
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
在Dockerfile中指定了
ENV APACHE_RUN_DIR /var/run/apache2
手動建立此資料夾即解決問題
- AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.17.0.24. Set the ‘ServerName’ directive globally to suppress this message
執行:
sed -i ‘s/#ServerName www.example.com:80/ServerName localhost:80/g’ /usr/local/apache2/conf/httpd.conf
即可解決
相關推薦
在ubuntu最新docker映象上安裝apache2的幾個坑
[email protected]:/app# exec apache2 -D FOREGROUND apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must
ubuntu上安裝Apache2+ModSecurity及實現防SQL注入演示
ubuntu上安裝Apache2+ModSecurity及實現防SQL注入演示 一、Apache2 的安裝 1.1、安裝環境: OS:Ubuntu 16.04.1 LTS Apache: Apache/2.4.18 (Ubuntu) 安裝命令: 更新安裝源:
在 Ubuntu 16.04 LTS 上安裝 Python 3.6.0
tty article print spa blog sdn number ins 6.0 轉自(http://blog.csdn.net/Wangdada111/article/details/73382537?locationNum=2&fps=1) 安裝:
Ubuntu 16.04 LTS上安裝Shadowsocks
shadowsocks1、安裝Shadowsocks$ sudo apt-get update $ sudo apt-get install python-gevent python-pip python-m2crypto python-wheel python-setuptools $ sudo pip i
ubuntu-14.04.5上安裝vim,顯示軟體包vim沒有可供安裝的候選者
在ubuntu-14.04.5原始的vi編輯器上,Backspace鍵的作用不同於windows上,不是刪除作用,因此為了方便使用,安裝vim編輯器:執行命令 sudo apt-get install vim,顯示軟體包vim沒有可供安裝的候選者。 解決方法: &nb
如何在Ubuntu 18.04 LTS上安裝VMware Workstation
什麼是VMware Workstation? VMware Workstation是由VMware公司開發的虛擬化軟體,成立於1998年.VMware Workstation於2001年推出,作為安裝不同作業系統的多個例項的平臺,尤其是客戶端和伺服器系統。它支援硬碟,CD Roms和USB裝置的硬體相容性,
如何在Ubuntu Server 18.04上安裝fail2ban
信不信由你,fail2ban非常容易安裝和使用,它應該被認為是所有Linux伺服器的必備軟體。 我想帶你看看在Ubuntu 18.04上安裝fail2ban的過程。然後,我將向您展示如何新增一個監控器來監視失敗的SSH登入嘗試。 安裝 安裝fail2ban很簡單。登入到您的Ubuntu伺服器並更新/升級
【Ubuntu】在Ubuntu16上安裝nodejs以及npm
轉載: 步驟: 1、先在系統上安裝好nodejs和npm sudo apt-get install nodejs-legacy sudo apt-get install npm 2、安裝用於安裝nodejs的模組n sudo
Docker映象上傳到私有倉庫
檢視需要上傳的映象...複製映象名 (1)標記此映象為私有倉庫的映象 docker tag mybatis/springboothelloworld 192.168.25.136:5000/springboothelloworld (2)再次啟動私服容
docker的基本操作和在docker映象中安裝自己的程式執行
1,背景 虛擬機器系統:centos 72,關閉防火牆,這裡使用臨時關閉: setenforce 0 (永久關閉:修改/etc/sysconfig/selinux檔案,將SELINUX的值設定為disabled。)3,啟動docker服務 service do
docker 學習筆記---如何將docker 映象上傳到docker hub倉庫
1 先建立Docker hub 帳號 ,並建立倉庫 首先你需要一個docker hub 帳號,記住username,password,email .後面在命令列驗證登陸的時候需要用到,再下來就是建立倉庫了,本文假定你的英語還湊合可以看得懂英文,辣麼:create ---&g
Docker映象上傳到阿里雲的步驟詳解
1 安裝Docker執行環境2 註冊阿里雲賬戶例如:賬戶:msjtest密碼:1234563 登陸賬戶4 管理Docker Hub映象站點:配置Docker加速器5 建立映象倉庫的名稱空間例如:msj6 建立映象倉庫例如:image-test7 操作指南1)登入阿里雲docker registry:?1$ s
如何在Ubuntu Server 18.04上安裝GNOME桌面
本文會向您展示如何使用幾個簡單的命令安裝GNOME桌面。 讓我來告訴你怎麼做。 你需要什麼 您需要的只是Ubuntu 18.04的執行例項和具有sudo許可權的使用者帳戶。 更新/升級 在我們完成此任務之前,您要做的第一件事是更新和升級您的伺服器。 由於伺服器核心可以升級,因此最好在可
在Ubuntu 14.04 64bit上安裝Markdown和繪圖軟體Haroopad
簡介 Haroopad:一款讓你欲罷不能的Markdown編輯器 身為大程式設計師,我本來是不需要 Markdown 編輯器的,但是 Haroopad 讓我簡直欲罷不能,不能再愛更多。跨平臺,程式碼高亮,Vim 鍵繫結,多列模式,行號,摺疊, Github Flavore
docker 映象下安裝Vim
在docker映象執行以後發現沒辦法編輯一些配置檔案,解決步驟如下: 首先,進入docker映象 #進入映象命令 docker exec -it 映象Id或映象name /bin/bash 配置國內映象源 實際在
在樹莓派raspberry 3B+板上安裝apache2 伺服器,並安裝Flask和Python環境
1: apt-get install apache2 失敗需要首先更新apt-get upgrade失敗,提示沒有公鑰進入/etc/apt/source.list,刪除了media那個源執行apt-get update成功2:安裝apache2apt-get install
在Ubuntu 14.04 64bit上安裝python-pyqt5軟體包(python 2.7)
一、摘要 python-pyqt5 軟體包是做什麼的,我在Ubuntu 14.04 64bit上該如何安裝呢?pyqt5 python的GUI開發包。也就是跨平臺的圖形化開發包http://www.riverbankcomputing.com/software/pyqt/d
Ubuntu 14.04 64bit上安裝有道詞典Linux版本
4月20日,由有道詞典和Deepin團隊共同完成的有道詞典Linux版終於上線了,首先 推出Deepin和Ubuntu兩個系統版本及其他版本的二進位制包,估計以後還會有RPM 等版本。有道Linux版介面精美,實現多語言精準翻譯,有原聲發音和圖解詞典, 支援螢幕取詞劃詞。下
docker---centos6上安裝
docker啟動前必須安裝cgroup,不然docker跑不起來,會報error unmounting device以及failed to find the cgroup root錯誤。 1、安裝cgroup,yum install libcgroup; 2、啟動cgrou