D
Size: a a a
VP
$ sudo systemctl start apache2
Running in chroot, ignoring request.
С
$ sudo /usr/sbin/apachectl startЕсли сервер написан именно как сервис, ты его так не обманешь.
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
Running in chroot, ignoring request.
VP
$ sudo /usr/sbin/apachectl startЕсли сервер написан именно как сервис, ты его так не обманешь.
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
Running in chroot, ignoring request.
С
$ systemctl cat apache2.service
# /lib/systemd/system/apache2.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
Environment=APACHE_STARTED_BY_SYSTEMD=true
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true
Restart=on-abort
[Install]
С
VP
$ systemctl cat apache2.service
# /lib/systemd/system/apache2.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
Environment=APACHE_STARTED_BY_SYSTEMD=true
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true
Restart=on-abort
[Install]
httpd --help
TV
TV
С
httpd --help
VP
TV
С
VP
С
E
С
$ sudo find / | grep httpd$
$
VP
$ sudo find / | grep httpd$
$