• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:proftpd inetd に変更する方法?)

Proftpdをinetdに変更する方法

このQ&Aのポイント
  • Centos8でstandalone方式でFTPサーバーを立ち上げているが、DDNSを使用して外部からアクセスするにはinetd方式に変更する必要がある。
  • xinetdをインストールして起動し、proftpd.confのServerTypeをinetdに変更する。
  • proftpdとxinetdを再起動するとproftpdは動作していない状態になる。解決策を探している。

質問者が選んだベストアンサー

  • ベストアンサー
回答No.2

あいにく、Miracle Linux 8の経験はないのですが、 proftpdをinetdで起動させるということなら 考え方としては 1) systemctl stop proftpd ↑proftpdを止める(もう止まっているならエラーするけど無視) systemctl disable proftpd ↑ 次のOSの起動時にproftpdのデーモンが立ち上がらないようにする 2) xnetdからproftpdをキックする設定をするのに  /etc/xinetd.d/ftp (OSによってはファイル名は xproftpdとかかも) を設置。  (disable=no にするのと、   server=はproftpd実行ファイルが実際に存在するパスになっているか) 3) systemctl restart xinetd ↑xinetdを再起動 systemctl enable xinetd ↑ 次のOSの起動時にxinetdが立ち上がるようする 4) firewall-cmdで ftpのポートとパッシブモードのポートを許可 (standaloneで設定した時にやってるなら不要) ということになるでしょう。

kmsakutomo
質問者

補足

いろいろとありがとうございます。 外部接続可能なサーバーは、サークル活動時の Web サーバーとして使っており、頻繁に再起動したりするのはマズイと思ったので、まずは LAN 内で正常に動作している standalone 方式の別の FTP サーバーを使って、これを inetd 方式に変更する、という事で進めています。 このアプローチは間違っていないでしょうか? このアプローチが問題無い、という事を前提に、ご教示頂いた方法をベースにいろいろと試行錯誤を繰り返していますが、まだ FTP サーバーと接続できていません。今までやった事は下記です。 なお、我が家のサーバーは 全てSELinux を停止、パケットフィルタリングも停止しています。 # systemctl stop proftpd ← proftpdを止める # systemctl disable proftpd ← 次のOSの起動時にproftpdのデーモンが立ち上がらないようにする 前回報告したように、xinetd はインストール済みなので、 # systemctl stop xinetd ← とりあえず xinetd は停止。 # vi /etc/xinetd.d/ftp で、以下の内容の ftp ファイルをネット情報を参考に作成する。 { disable = no socket_type = stream protocol = tcp wait = no user = root server = /usr/local/sbin/proftpd なお、最後のラインは実行ファイルが実際に存在するパスが不明だったので、 # find / -name proftpd  を実行して、 /usr/local/src/proftpd-1.3.7f/proftpd /usr/local/lib/proftpd /usr/local/include/proftpd /usr/local/sbin/proftpd /var/log/proftpd の結果を得たので、上記の値にしました。 その後、 # systemctl restart xinetd   ← xinetdを再起動 # systemctl enable xinetd   ← 次のOSの起動時にxinetdが立ち上がるようするを実行 # systemctl status xinetd で状態を確認すると、以下のようにエラーはない事を確認。 ● xinetd.service - Xinetd A Powerful Replacement For Inetd Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled) Active: inactive (dead) since Sun 2023-03-26 16:13:44 JST; 11min ago Docs: man:xinetd man:xinetd.conf man:xinetd.log Process: 1001 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid (code=exited, status=0/SUCCESS) Main PID: 1071 (code=exited, status=0/SUCCESS) 3月 26 15:48:33 XS35V4 xinetd[1071]: removing echo 3月 26 15:48:33 XS35V4 xinetd[1071]: removing echo 3月 26 15:48:33 XS35V4 xinetd[1071]: removing tcpmux 3月 26 15:48:33 XS35V4 xinetd[1071]: removing time 3月 26 15:48:33 XS35V4 xinetd[1071]: removing time 3月 26 15:48:33 XS35V4 xinetd[1071]: xinetd Version 2.3.15 started with loadavg labeled-networking options compiled in. 3月 26 15:48:33 XS35V4 xinetd[1071]: Started working: 0 available services 3月 26 16:13:44 XS35V4 systemd[1]: Stopping Xinetd A Powerful Replacement For Inetd... 3月 26 16:13:44 XS35V4 systemd[1]: xinetd.service: Succeeded. 3月 26 16:13:44 XS35V4 systemd[1]: Stopped Xinetd A Powerful Replacement For Inetd. ここで、 ・proftpd.conf を修正した。 # vi /usr/local/etc/proftpd.conf #ServerType standalone ServerType inetd 念のため、systemctl restart xinetd で xinetd の再起動も行った。 この状態で LAN 内部から、passive 、非passive のどちらのモードでも FTP サーバーに接続できない、という現状です。 気になるのは、systemctl status xinetd で状態を確認しても、ftp という語彙が無い事と、 /etc/xinetd.conf を私は編集した事が無いことです。  以上のような状況です。アドバイスをお願いしたしたく、よろしくお願い申しあげます。

全文を見る
すると、全ての回答が全文表示されます。

その他の回答 (3)

回答No.4

> 現在の私の状態では、/etc の配下に hosts.deny hosts.allow といったものはありません。 あっと、そうでした。 CentOS8からはtcpラッパーがなくなったのでした。 /etc/hosts.deny hosts.allowの件は 無視してください。

全文を見る
すると、全ての回答が全文表示されます。
回答No.3

/etc/xinetd.d/ftp の最後に }が足りないようですが コピペだけの問題ですかね それと xinetdを使うと、(多分の通常設定だと) tcpラッパーでのアクセス制限が通るようになります。 つまり、/etc/hosts.denyでALL:ALL みたいにして基本は拒否設定を しているのなら、/etc/hosts.allowに FTPの許可の記述が必要です。 アプローチの件ですが それぞれ考え方があるとは思いますが 私なら以下の優先度で考えます。 1) 実験でなく実用で使うのであれば 24時間自宅サーバーをたちあげておく電気代と騒音と運用トラブルの ストレスを考えると、月500円程度の格安レンタルサーバーを使う #もちろん自宅サーバーで開発途中のシステムを外部から検証してもらうとか #技術的興味(勉強)で、自宅にサーバーを立てるということはありますけども。 2) 21番でないとパッシブポートのIP変換をしてくれないルーターならば LinuxサーバーのFTPを21ポートにして  もう一つのNAS用のFTPは、VPN接続で使うか LinuxからNASをマウントしてLinuxへのFTPアクセスにまとめる。 これなら、proftpd.confで MasqueradeAddress を使わないですむので、standaloneでも問題ないし MasqueradeAddressがないということは LANからでもパッシブが使えるので。 3) 今やってるように、inetd方式とする。 できれば、ヘアピンNAT付きのルーターを使って LAN内からもグローバルIPでFTPアクセスできるようにし パッシブモードも使えるようにする 4) パッシブモードは使わない ですかねぇ。。

kmsakutomo
質問者

お礼

前回の質問時に、知人が(今となっては古くなった) centos6 で、inted 方式で proftpd が動作している、というお話をさせてもらいましたが、その知人からの情報を元に、以下ようにしたところ、動作するようになったので、ご連絡いたします。 (1) 先ほどコピペミスをしたファイル名を、 /etc/xinetd.d/ftp ではなく  /etc/xinetd.d/ftp2121 とする。 (2) # vi /etc/services にて、このファイルに以下の2文を追加する。  ftp2121 2121/tcp  ftp2121 2121/udp (3) systemctl restart xinetd で再起動。 とりあえず、LAN内部で inetd モードで ポート 2121 で動作するようになりました。 いろいろと教えて頂き、ありがとうございました。

kmsakutomo
質問者

補足

すみません。コピペミスでした。正しくは下記です。 上下でコピペミスをして、混乱させてしまいすみませんでした。 service ftp { disable = no socket_type = stream protocol = tcp wait = no user = root server = /usr/local/sbin/proftpd } >それと xinetdを使うと、(多分の通常設定だと) tcpラッパーでのアクセス制限が通るようになります。 つまり、/etc/hosts.denyでALL:ALL みたいにして基本は拒否設定を しているのなら、/etc/hosts.allowに FTPの許可の記述が必要です。 大変恐れ入りますが、上記の部分をもう少し詳しく教えていただけないでしょうか。 現在の私の状態では、/etc の配下に hosts.deny hosts.allow といったものはありません。 当初 /etc/xinetd.conf を変更して、「enable = 」の項目に ftp を設定するのかと想像していたのですが、ネット検索でもそのような例はなく、xinetd 配下で FTP を許可する方法は、私には見つけられていません。 また、アプローチの提案、参考にさせていただきます。 私の場合サーバーは商用で使うのではなく、個人の趣味(同好会活動を含む)なので、レンタルサーバーの制約条件を調べるより、root 権限で何でもできる自宅サーバを 選択してきましたが、エネルギー危機の時代、電気代の考慮も今後必要ですね。

全文を見る
すると、全ての回答が全文表示されます。
回答No.1

standalone だと proftpdをデーモンとして起動しておいて待ち受け inetdだと、xinetdが待ち受けしてリクエストがあればproftpdをキック です。 なので、proftpd.confで inetdを指定しているのに systemctl restart proftpd としてデーモンとして起動しようとすること自体が、矛盾していませんか?

kmsakutomo
質問者

補足

superside0 様、前回の質問の際には大変お世話になりました。 改めてお礼申し上げます。 >standalone だと proftpdをデーモンとして起動しておいて待ち受けinetdだと、xinetdが待ち受けしてリクエストがあればproftpdをキックです。 なので、proftpd.confで inetdを指定しているのに systemctl restart proftpd としてデーモンとして起動しようとすること自体が、矛盾していませんか? 確かに、何となくおかしいとは感じているのですが、何しろ xinetd を使った経験がないので、ネット情報を参考に試行錯誤中というのが現状です。 ネット情報で、inetd モードの場合は「ProFTPDの起動設定はxproftpd」のような記載があったのですが、xproftpd をどうやって生成するのかに関して詳しい記載がありませんでした。 superside0 様の方で、このあたりの詳しい情報をお持ちでしたら、ご教示頂けると助かります。 以上、よろしくお願いいたします。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • コマンドライン からproftpd を起動しようとすると、proftpd が起動しません。

    こんばんわ, 現在Linuxでftpサーバー(インターネット)を立ち上げようと挑戦しています。 とりあえず,インストールは終わり,基本的な設定は終わったのですが,タイトルどおりコマンドライン からproftpd を起動しようとすると、"Fatal: Socket operation on non-socket"というメッセージが出て、proftpd が起動しません。http://www.infoscience.co.jp/technical/proftpd/configuration.html によると,それは,「proftpd.conf 設定ファイルを編集して、ServerType directive を読み込むように、追加、編集する必要があります」とありますが, 私のetc/proftpd/proftpd.confの中身は 「ServerType    inetd」 にしています。何がおかしいのでしょうか。 よろしくお願いします。

  • xinetdとproftpdについて

    宜しくお願いします。 xinetdを使いproftpdでFTPの設定を行っております。 FTPポートにIPアドレスを追加したいので、proftpd.confに追加するIPをonly_formで追加したので、xinetdとproftpdを再起動しようとしたのですが、xinetdは問題なく再起動できたのですが、proftpdが再起動できません。こんなエラーが返されます。 logs - fatal: Socket operation on non-socket logs - (Running from command line? Use `ServerType standalone' in config file!) /etc/xinetd.confの内容は defaults { instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d となっております。(コメント行は省いています。) /etc/xinetd.d/proftpdの内容は ervice ftp { socket_type = stream wait = no user = root server = /usr/local/sbin/in.proftpd log_on_success += DURATION USERID log_on_failure += USERID nice = 10 disable = no only_form = ***.***.***.*** } となっております。 proftpdが再起動できないので、設定が反映されず、上記のonly_formのIPアドレスでアクセスできません。

  • inetdに関連について

    この掲示板結構載ってますが、 inetdとxinetdについて質問です。 今、標準でrpmに入っていたxinetdを使っているのですが、 参照URL→http://sakaguch.com/pastbbs/0021/B0011566.html を元に修正してみました。 1./etc/xinetd.d/にvsftpdおよびsshdの作成 2,standaloneにしない為、/etc/vsftpd/vsftpd.confの修正 3.サービスの自動起動OFF 4.起動しているサービスの停止  /etc/rc.d/init.d/vsftpd stop 5.xinetdの再起動の再起動 上記5つ手順を実施したのですが、 ローカル環境で ftp localhost でFTP接続確認をしたところ、 connect: Connection refusedというエラーが出てしまいました。 iptablesやpsで見てもFTPなどのポートが出てきません 他に修正するところがあるのでしょうか。 特に気になったのが、他にも参考にして作成をしたのですが、 vsftpdなどサービスを停止してしまっているから つながらないのは当たり前だと思っております。 分かりにくいかもしれませんが、教えてください

  • RedHat9.0 + ProFTPD1.28が、ローカルホスト上でうまく動作しません

    おはようございます。 RedHat9.0 + ProFTPD1.28が、ローカルホスト上でうまく動作しません。 これまでどのような設定を行ったかと言うと、、、 (設定は全てWebmin1.090で行っています) 1.Webmin - 「サーバー」-「ProFTPD Server」-「Edit Config Files」で、/etc/proftpd.confを、下記の通りに編集 ServerName "vacuus FTP Server" ServerType inetd DefaultServer on ServerIdent on "FTP server ready." UseReverseDNS off IdentLookups off DefaultRoot ~ !admin Port 21 Umask 022 TimeGMT FALSE MaxInstances 30 ExtendedLog /var/log/roftpd.log User nobody Group nobody <Directory /*> AllowOverwrite on </Directory> 2.エディタで/etc/xinetd.d/ftpファイルを新規に作成、ファイルの内容は下記の通り。 114-7 service ftp { disable = no socket_type = stream protocol = tcp wait = no user = root server = /user/sbin/in.proftpd } 3.xinetd.dの変更を反映させるために、Webmin - 「サーバー」-「ネットワーク」-「拡張インターネットサービス」で、「変更を適用」をクリック 4.システムを再起動、その後rootで、ログイン 1~4の作業を実施した後、 [root@vacuus root]# ftp localhost とすると、 ftp: connect: Connection refused となってしまいます。 設定に何が不足しているのか、もしおわかりになる方がいたら、教えてください。

  • メールサーバ postfix が設定できません。

    # systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 土 2018-12-01 19:42:40 JST; 1min 12s ago Process: 1888 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 1885 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 1551 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75) 12月 01 19:42:38 localhost.localdomain systemd[1]: Starting Postfix Mail Tra... 12月 01 19:42:38 localhost.localdomain aliasesdb[1551]: /usr/sbin/postconf: ... 12月 01 19:42:39 localhost.localdomain aliasesdb[1551]: newaliases: fatal: /... 12月 01 19:42:39 localhost.localdomain postfix[1888]: fatal: /etc/postfix/ma... 12月 01 19:42:40 localhost.localdomain systemd[1]: postfix.service: control ... 12月 01 19:42:40 localhost.localdomain systemd[1]: Failed to start Postfix M... 12月 01 19:42:40 localhost.localdomain systemd[1]: Unit postfix.service ente... 12月 01 19:42:40 localhost.localdomain systemd[1]: postfix.service failed. Hint: Some lines were ellipsized, use -l to show in full. どこを直せばいいでしょうか? 御多忙中恐れいります。 ご回答のほど宜しく御願い申し上げます。

  • Ubuntuでのデータディレクトリの変更

    Raspberry Pi 3にインストールしたUbuntu Mate 16.04にMySQLをインストールしました。 そこで、データディレクトリを外付けHDDに移動しようと考えています。 (外付けHDDは/dataにマウント済みでchmod 777 /dataとしてあります。) uname -a は Linux raspberry 4.4.13-v7+ #893 SMP Wed Jun 8 14:39:18 BST 2016 armv7l armv7l armv7l GNU/Linux mysqld --version は mysqld Ver 5.7.12-0ubuntu1 for Linux on armv7l ((Ubuntu)) となっています。 行ったこと。 ・sudo apt-get install mysql-server ・sudo systemctl stop mysql ・sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf で datadir = /var/lib/mysql から datadir = /data/mysql に変更 ・sudo vi /etc/apparmor.d/local/usr.sbin.mysqld に /data/mysql r, /data/mysql/** rwk, を追加。 ・sudo mv /var/lib/mysql /var/lib/mysql.orig ・sudo mysqld --initialize ここまでで/data/mysqlが作成され、その下に/var/lib/mysql.origと同じファイルやディレクトリが作成されたことを確認しました。 そこで、 sudo systemctl start mysql を実行すると Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. と出てMySQLの起動に失敗します。 systemctl status mysql.service の結果は ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: inactive (dead) (Result: exit-code) since 日 2016-06-12 23:38:36 JST; 16s ago Process: 10181 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 10180 ExecStart=/usr/sbin/mysqld (code=exited, status=0/SUCCESS) Process: 13372 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE) Main PID: 10180 (code=exited, status=0/SUCCESS) 6月 12 23:38:35 raspberry systemd[1]: Failed to start MySQL Community Server. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Unit entered failed state. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Failed with result 'exit-code'. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Service hold-off time over, scheduling restart. 6月 12 23:38:36 raspberry systemd[1]: Stopped MySQL Community Server. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Start request repeated too quickly. 6月 12 23:38:36 raspberry systemd[1]: Failed to start MySQL Community Server. となっています。 journal -xe の結果は -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished shutting down. 6月 12 23:41:26 raspberry systemd[1]: Started Braille Device Support. -- Subject: Unit brltty.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished starting up. -- -- The start-up result is done. 6月 12 23:41:26 raspberry systemd[13418]: brltty.service: Failed at step SECCOMP spawning /bin/sh: Invalid argument -- Subject: Process /bin/sh could not be executed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /bin/sh could not be executed and failed. -- -- The error number returned by this process is 22. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Main process exited, code=exited, status=228/SECCOMP 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Unit entered failed state. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Failed with result 'exit-code'. となっています。 ここまで行って手詰まりになってしまいました。 大変恐縮ですが、ここまでの手順で足りないところ、間違っているところなどありましたらご教示ください。 よろしくお願いいたします。

  • signal=SEGV で httpd起動できない

    ホストOS Windows7(HomeEdition sp1) に VirtualBox (Ver 4.1.8) で ゲスト Fedora16 をインストールしました。 物理的に1台のPC ( 64ビットオペレーション、実装メモリ 4.00GB) 内でホストオンリーアダプターで相互に接続する閉じた環境です。sshd, vsftpd はいずれも作動し、Windows側からFedoraを順調に操作できます。ところが、httpd を起動させようとすると、次のメッセージが出て起動できません。 諸サイト検索し、重大な障害であることらしいことは分かりましたが、対処法が分かりません。 どのようにすれば解決できますでしょうか? 何分にもよろしくお願いします。 ~]# systemctl start httpd.service Job failed. See system logs and 'systemctl status' for details. ~]# systemctl status httpd.service httpd.service - The Apache HTTP Server (prefork MPM) Loaded: loaded (/lib/systemd/system/httpd.service; disabled) Active: failed since Wed, 04 Apr 2012 20:23:16 +0900; 8min ago Process: 2090 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=dumped, signal=SEGV) CGroup: name=systemd:/system/httpd.service ~]#

  • apache2が起動しない。

    いつもお世話になり誠にありがとうございます。 標記の件。 下記のとおり、どうしてもapache2が起動しません。 どう対処すればいいでしょうか? ご回答の程、宜しくお願い申し上げます。    記 systemctl stop apache2 localhost:/home/kou # systemctl start apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details. localhost:/home/kou # systemctl status apache2.service × apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2022-06-27 07:38:22 JST; 1min 4s ago Process: 9015 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FA> Main PID: 9015 (code=exited, status=1/FAILURE) Status: "Reading configuration..." Jun 27 07:38:22 localhost systemd[1]: Starting The Apache Webserver... Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: no listening sockets available, shutting down Jun 27 07:38:22 localhost start_apache2[9015]: AH00015: Unable to open logs Jun 27 07:38:22 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Jun 27 07:38:22 localhost systemd[1]: apache2.service: Failed with result 'exit-code'. Jun 27 07:38:22 localhost systemd[1]: Failed to start The Apache Webserver. lines 1-15/15 (END)

  • Apache2 failed

    これ、どうすれば直るでしょうか? どうか、ご回答願います。 # systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese> Active: failed (Result: exit-code) since Tue 2020-08-25 08:05:56 JST; 2min> Docs: https://httpd.apache.org/docs/2.4/ Process: 6775 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FA> 8月 25 08:05:56 GN164 systemd[1]: Starting The Apache HTTP Server... 8月 25 08:05:56 GN164 apachectl[6783]: AH00526: Syntax error on line 13 of /et> 8月 25 08:05:56 GN164 apachectl[6783]: <VirtualHost> cannot occur within <Virt> 8月 25 08:05:56 GN164 apachectl[6775]: Action 'start' failed. 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. [1]+ 停止 systemctl status apache2.service root@GN164:/var# journalctl -xe 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> -- Subject: Unit process exited -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- An ExecStart= process belonging to unit apache2.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> -- Subject: Unit failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The unit apache2.service has entered the 'failed' state with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: A start job for unit apache2.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A start job for unit apache2.service has finished with a failure. -- -- The job identifier is 2046 and the job result is failed. lines 1313-1335/1335 (END)

  • # systemctl status httpd.

    いつも大変お世話になり、誠にありがとうございます。 表記の件。 apache2をインストールした後に、FireFoxで確認すると【1.2.3...】が出ますが 先に進めていくうちに、見れなくなります。 どうすれば直りますか? ご回答のほど、宜しくお願い申し上げます。 # systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 月 2020-05-11 01:37:36 JST; 1min 2s ago Docs: man:httpd(8) man:apachectl(8) Process: 6811 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 6815 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 6815 (code=exited, status=1/FAILURE) 5月 11 01:37:35 localhost.localdomain systemd[1]: Stopped The Apache HTTP Server. 5月 11 01:37:35 localhost.localdomain systemd[1]: Starting The Apache HTTP Server... 5月 11 01:37:36 localhost.localdomain httpd[6815]: AH00526: Syntax error on line ...: 5月 11 01:37:36 localhost.localdomain httpd[6815]: DocumentRoot '/var/www/html' i...e 5月 11 01:37:36 localhost.localdomain systemd[1]: httpd.service: main process exi...E 5月 11 01:37:36 localhost.localdomain systemd[1]: Failed to start The Apache HTTP.... 5月 11 01:37:36 localhost.localdomain systemd[1]: Unit httpd.service entered fail.... 5月 11 01:37:36 localhost.localdomain systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full.

このQ&Aのポイント
  • パパ活とは何か?SNSで募集中のパパ活。
  • 一方で、婚活はなぜよくて、パパ活は悪いのか?
  • なぜパパ活は非難の的になっているのか?
回答を見る