如何检查 OpenVPN 是否在我的服务器上运行?我试过“sudo systemctl status openvpn”,但我不确定一切是否正常,因为我得到:“Active:active (exited) since ...”
? openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2017-10-23 08:01:05 CEST; 1h 3min ago
Process: 2356 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 2356 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/openvpn.service
Run Code Online (Sandbox Code Playgroud)
为什么“退出”?类似的情况出现在下面的两行(进程和主 PID)。
有人可以帮助如何更改 XUbuntu 中的默认终端窗口大小吗?
经过一番冲浪,我找到了 Gnome 的说明。也许我不明白,但 XUbuntu 不使用 Gnome?
提前致谢。
我使用 Lubuntu 并想设置更大的终端窗口(默认)。我怎样才能做到这一点?
也许在 lxterminal.conf 但如何?
作为 Nginx 菜鸟,我有一个无法解决的问题。在 Nginx 网站配置中,我有:
server {
listen 443;
listen [::]:443;
ssl on;
ssl_certificate /etc/letsencrypt/live/website.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/website.eu/privkey.pem;
server_name website.eu www.website.eu;
index index.html index.htm index.php;
root /var/www/website;
location / {
try_files $uri $uri/ =404;
}
location /pihole {
alias /var/www/html;
try_files $uri $uri/ /admin/index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
Run Code Online (Sandbox Code Playgroud)
网站有效,但 Pihole 安装在/var/www/html文件夹中。如果我尝试访问它,我会得到:
user@website:~$ curl -i https://www.website.eu/pihole
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.0 (Ubuntu)
Date: Fri, 01 Nov 2019 11:29:13 GMT
Content-Type: text/html
Content-Length: …Run Code Online (Sandbox Code Playgroud) 如何在 Pidgin 中禁用拼写检查器?任何的想法?我在网上搜索,但没有找到任何东西。
在 bash 脚本中,我想检查它是否是当月的第一天。我现在有:
if [ $DAY -eq 1 ]; then
rclone copy /tmp/$MONTH-$YEAR.tar.gz.gpg /server2/archive
fi
Run Code Online (Sandbox Code Playgroud)
我收到一个错误:
[: -eq: unary operator expected
Run Code Online (Sandbox Code Playgroud)
我从网上尝试了许多不同的语法,但我无法成功。知道出了什么问题吗?Ubuntu 服务器 18.04
我们在 Ubuntu 18.04 服务器上安装了 Apache Web 服务器。在我们的开发人员决定使用 NGINX 之后,我们删除了 Apache 并安装了 NGINX。我已经删除了 Apache: - apt remove ... - systemctl stop apache2 - systemctl disable apache2 - 检查 /etc/systemd/apache* 中是否存在某些内容(什么都没有)。
它可以正常工作,但我注意到日志中的下一行:
-- Reboot --
Jun 11 09:33:28 ela1 systemd[1]: Starting LSB: Apache2 web server...
Jun 11 09:33:28 ela1 apache2[892]: /etc/init.d/apache2: 46: .: Can't open /etc/apache2/envvars
Jun 11 09:33:29 ela1 apache2[892]: /etc/init.d/apache2: 57: .: Can't open /etc/apache2/envvars
Jun 11 09:33:29 ela1 systemd[1]: Started LSB: Apache2 web server.
Run Code Online (Sandbox Code Playgroud)
知道如何摆脱 Apache 吗?