o apache2 está inativo (Nenhum arquivo ou diretório)

1

Eu instalei o apache2 há muitas semanas e ele funcionou por muitas horas até eu removê-lo. Eu fiz:

sudo apt-get remove apache2*

Hoje quero instalar o apache2 novamente. Eu fiz

sudo apt-get install apache2

e sua resposta

正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
  apache2-bin apache2-data apache2-utils
建議套件:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
下列【新】套件將會被安裝:
  apache2 apache2-bin apache2-data apache2-utils
升級 0 個,新安裝 4 個,移除 0 個,有 76 個未被升級。
需要下載 0 B/1,255 kB 的套件檔。
此操作完成之後,會多佔用 5,403 kB 的磁碟空間。
是否繼續進行 [Y/n]? [Y/n] Y
選取了原先未選的套件 apache2-bin。
(讀取資料庫 ... 目前共安裝了 152131 個檔案和目錄。)
Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-bin (2.4.18-2ubuntu3.5) ...
選取了原先未選的套件 apache2-utils。
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.5) ...
選取了原先未選的套件 apache2-data。
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.5_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.5) ...
選取了原先未選的套件 apache2。
Preparing to unpack .../apache2_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache Full'

設定 apache2-bin (2.4.18-2ubuntu3.5) ...
設定 apache2-utils (2.4.18-2ubuntu3.5) ...
設定 apache2-data (2.4.18-2ubuntu3.5) ...
設定 apache2 (2.4.18-2ubuntu3.5) ...

Mas depois de instalar o apache2, não há arquivo na pasta /etc/apache2 e não consigo encontrar o apache2 na pasta /etc/init.d .

Quando faço

sudo systemctl status apache2

Eu tenho

Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● apache2.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

E eu fiz

systemctl daemon-reload

Eu tenho (digitei a senha)

==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ****,,,(****)
Password:
==== AUTHENTICATION COMPLETE ===

Mas ainda está inativo. O que eu posso fazer? Isso me incomoda por muitos dias.

    
por SixNine 14.11.2017 / 11:54

0 respostas