我是Linux新手,正在尝试使用环境variables来configurationHAProxy。 我正在运行Debian 8(Jessie)和HAProxy 1.5.8,我使用apt-get安装,按照https://haproxy.debian.net/#?distribution=Debian&release=jessie&version=1.5 没有环境variables,configuration工作非常好。 我遵循这个答案 (从/etc/init.d/haproxy设置环境variables)的指示来获取环境variables的工作,但仍然得到了503 – 服务不可用的响应。 然后我查看了/etc/init.d/haproxy并认为这两行可能会改变可用variables的范围 [ -f /etc/default/rcS ] && . /etc/default/rcS . /lib/lsb/init-functions 所以我评论他们。 然后我可以启动HAProxy使用sudo /etc/init.d/haproxy start ,我的configuration工作正如我所料,但是当我尝试运行sudo service haproxy start我仍然得到503 – 服务不可用。 在我看来, 这个问题有我正在寻找的答案,但我还没有能够把答案从那里翻译到我的域名。 这是我使用环境variables的haproxy.cfg文件的一部分: backend backend1 server EnvVar ${SERVER_IP}:86 maxconn 512 我也在这里查看了一些其他的问题,但没有find解决我的问题的办法。 当haproxy作为服务运行时,如何设置环境variables以便haproxy可以读取它?
如果我做 me@server:/home/me# service apache2 restart 在我的LXC-VPS(节点服务器不是在重负载下)我越来越 Error: No space left on device df -h告诉我有足够的空间 /dev/loop1 394G 72G 303G 20% / none 100K 0 100K 0% /dev cgroup 12K 0 12K 0% /sys/fs/cgroup tmpfs 63G 0 63G 0% /sys/fs/cgroup/cgmanager tmpfs 63G 0 63G 0% /dev/shm tmpfs 63G 903M 63G 2% /run tmpfs 5,0M 0 5,0M 0% […]
我正在寻找配备MariaDB 10的Debian 8.2 Virtualbox VM。 我使用以下内容: sudo export DEBIAN_FRONTEND=noninteractive sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $ROOTDBPWD" sudo debconf-set-selections <<< "mariadb-server mariadb-server/oneway_migration boolean true" sudo apt-get install mariadb-server -y 运行时,脚本停止,我认为由于最后一个提示“oneway_migration布尔真”,因为我可以看到这个提示未经格式化在控制台(即使“导出DEBIAN_FRONTEND =非交互”)。 这是脚本停止之前得到的: ──────────┤ Configuring mariadb-server-10.0├──────────── MariaDB is a drop-in replacement for MySQL. It will use your current configuration file […]
我已经通过nginx别名+ php支持configuration了对本地目录的访问: https://mydomain.de/wbg /var/www/wallabag指向/var/www/wallabag 。 一切工作正常,直到我做了一个正常的apt-get update && apt-get升级在服务器上(运行在Debian 8上)。 现在当我打开网站,我只得到“没有指定input文件”。 这是nginx所说的: 2016/02/20 13:07:14 [error] 4376#0: *1 FastCGI sent in stderr: "Unable to open primary script: /var/www/wallabag/index.php/wbg/index.php (No such file or directory)" while reading response header from upstream, client: 78.50.228.24, server: mydomain.de, request: "GET /wbg/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mydomain.de" 这是我的configuration的重要部分: server { server_name mydomain.de; […]
我用Debian Jessie安装了Powerdns,并且在PowerAdmin中添加了NSlogging和其他DNSlogging,当我testing添加的logging时,它没有提供服务器,我在注册器中添加了名称服务器,还在Powerdns SOAlogging和NSlogging中添加了名称服务器和Alogging这个域名的NS dig mediapal.biz NS ; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> mediapal.biz NS ;; global options: +cmd ;; connection timed out; no servers could be reached
所以我在OpenDKIM签名的时候遇到了麻烦,但是我打了一个关于可能导致它的问题: Debian Jessie,Postfix和OpenDKIM。 我的/etc/opendkim.conf : Syslog yes SyslogSuccess Yes LogWhy yes UMask 002 Canonicalization relaxed/simple Mode sv SubDomains no #ADSPAction continue AutoRestart Yes AutoRestartRate 10/1h Background yes DNSTimeout 5 SignatureAlgorithm rsa-sha256 UserID opendkim:opendkim Socket inet:12301@localhost KeyTable refile:/etc/opendkim/KeyTable SigningTable refile:/etc/opendkim/SigningTable ExternalIgnoreList refile:/etc/opendkim/TrustedHosts InternalHosts refile:/etc/opendkim/TrustedHosts 我的/etc/opendkim/KeyTable : default._domainkey.example.com example.com:default:/etc/opendkim/keys/example.com/default.private 我的/etc/opendkim/SigningTable : example.com default._domainkey.example.com 在SigningTable上尝试了以下变化,但是禁用了我的SMTP: *@example.com default._domainkey.example.com 在我的/etc/default/opendkim取消注释以下行: […]
我已经安装了apache2和OpenSSL 我这样安装OpenSSL: sudo a2enmod ssl sudo mkdir /etc/apache2/ssl sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt sudo chmod 600 /etc/apache2/ssl/* sudo nano /etc/apache2/sites-enabled/***.ru.conf configuration完文件后 文件:/etc/apache2/sites-enabled/***.ru.conf <VirtualHost *:80> ServerAdmin office@***.eu ServerName ***.ru ServerAlias www.***.ru DocumentRoot /var/www/***.ru/public_html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> <VirtualHost *:443> ServerAdmin office@***.eu ServerName ***.ru:443 ServerAlias www.***.ru DocumentRoot […]
我正在引用这个项目: https : //www.psc.edu/index.php/hpn-ssh 我正在运行Debian 8, OpenSSH_6.7p1 Debian-5+deb8u1, OpenSSL 1.0.1k 8 Jan 2015和hpn-ssh没有这个版本的补丁,这是否意味着我必须以某种方式降级openSSH,然后编译旧版本的openSSH? 似乎不是最安全的select。 如果是的话,我将如何去做这件事。 (或者有更好的方法来快速复制大文件)
通常,存储pid或类似的目录是由服务的启动脚本创build的。 (看这个问题 ) 不过,我刚刚注意到,这些目录仍然重新启动后,当我禁用服务重新创build。 这发生在我尝试的所有服务上。 root@sonorus:~# systemctl status openvpn ● openvpn.service – OpenVPN service Loaded: loaded (/lib/systemd/system/openvpn.service; disabled) Active: inactive (dead) root@sonorus:~# systemctl status ejabberd ● ejabberd.service – A distributed, fault-tolerant Jabber/XMPP server Loaded: loaded (/lib/systemd/system/ejabberd.service; disabled) Active: inactive (dead) Docs: https://www.process-one.net/en/ejabberd/docs/ 哪个服务实际上是创build这些目录?
我刚刚安装了subversion软件包:aptitude install subversion。 我的问题是这安装了1.8不是最后的版本(1.9)… 为什么? 谢谢。