为了迁移旧的PHP软件,我想运行PHP 5.3。*所以我: 通过apt-get purge php*删除了apt-get purge php* 添加相应的http://snapshot.debian.org/archive/debian/到源 安装apt-get install php5=5.3.10-2 现在,如果我做apt-cache policy php5我得到: php5: Installed: 5.3.10-2 Candidate: 5.6.17+dfsg-0+deb8u1 Version table: 5.6.17+dfsg-0+deb8u1 0 500 http://ftp.debian.org/debian/ jessie/main amd64 Packages 5.6.14+dfsg-0+deb8u1 0 500 http://security.debian.org/ jessie/updates/main amd64 Packages *** 5.3.10-2 0 500 http://snapshot.debian.org/archive/debian/20120221T041601Z/ unstable/main amd64 Packages 100 /var/lib/dpkg/status 到目前为止,我的nginx设置如下所示: location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; […]
我有一台带有几个OpenVZ容器的Proxmox 3.4服务器。 主机和所有客人正在运行Debian 7 x64。 现在我想用Proxmox 4(基于Debian 8)将旧的设置迁移到新的服务器上。 我将多个OpenVZ容器转移到新环境中,并成功导入。 现在我们来解决这个问题:在升级到Debian 8之后,大多数mysqld都不会再启动了。 安装程序向我展示了my.cnf中的更改,因此我使用了包维护者版本。 一台机器仍然启动MySQL,其他一些不configuration,虽然configuration是相同的。 mysql-error-log不显示任何内容,也不显示syslog。 '/etc/init.d/mysql'中的启动脚本和'/etc/mysql/my.cnf'中的configuration在机器上是相同的。 root@web2:~# service mysql restart Job for mysql.service canceled. 直接启动mysqld工作: root@web2:~# mysqld_safe or root@web2:~# /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib/mysql/plugin –user=mysql –log-error=/var/log/mysql/error.log –pid-file=/var/run/mysqld/mysqld.pid –socket=/var/run/mysqld/mysqld.sock –port=3306 有人可以给我一个关于如何解决这个启动或服务问题的提示吗? 任何帮助或暗示在哪里search赞赏。
我对iptables相当陌生,正试图弄清楚我是否已经适当地configuration了我的规则集。 关于我的问题的-P INPUT ACCEPT部分,我正试图确定这是否适用于我想要应用的规则。 请参阅下面的进一步细节。 我已经使用包含以下规则的文件使用iptables-restore 。 本质上,我试图允许回送stream量,build立/相关的连接,SSH和HTTP。 所有其他stream量应该被拒绝。 *filter :fail2ban-ssh – [0:0] # Input chain rules -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo -s 127.0.0.0/8 -j REJECT -A INPUT -m conntrack –ctstate ESTABLISHED,RELATED -j ACCEPT -A INPUT -p tcp -m tcp –dport 22 -m conntrack –ctstate NEW,ESTABLISHED -j ACCEPT -A […]
我们有一个debian服务器,运行我们的Tomcat托pipe的应用程序,我们已经安装了Fail2Ban 。 每天早上我看到互联网上有很多人试图攻击服务器。 有一次,我采取了行动,我禁用了ssh的rootlogin,更改了默认的SSH端口号,只允许特定的用户名login。 因此,我们的主机提供商提供的用于备份和监控的软件失败了。 另外pipe理员无法login。 为此,我不得不恢复我所做的改变。 有没有办法解决这个问题。 我会恨一些用户得到幸运和妥协的服务器。 这些是我有的想法,他们怎么听起来: 根访问只允许在内部网。 默认端口只允许在Intranet上使用。 pipe理员在authorized_keys安装了SSH证书,无论如何,这可能是有用的? 任何其他的想法,谢谢。 🙂
我已经阅读了文档和其他教程 ,试图让fpm在构builddebian包时处理依赖关系,但每次都失败。 我的build.sh #!/bin/bash # constants ITERATION=1 CODEVER=0.006 DIRBUILD=/home/chicks/Documents/build-proxwrap DIRGIT=/home/chicks/Documents/git/wrap_proxmox DEPS=( "libio-prompt-perl (>= 0.997002-1)" "perl-doc (>= 5.18.2-2ubuntu1.1)" "liburi-escape-xs-perl (>= 0.11-1)" "libjson-perl (>= 2.61-1)" "libhttp-message-perl (>= 6.06-1)" "libwww-perl (>= 6.05-2)" ) PATH="$PATH:/home/chicks/.gem/ruby/2.3.0/bin" # clean dirs rm -rf $DIRBUILD mkdir -p $DIRBUILD || exit 1 mkdir -p $DIRBUILD/usr/bin || exit 1 mkdir -p $DIRBUILD/opt/lib/perl5 || exit 1 […]
我用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
我有Debian Wheezy 。 我错误地安装了systemd。 它似乎没有安装好,但现在它成为默认的初始pipe理器。 我无法重新启动,无法重新启动服务。 apt-get remove systemd dpkg -S /sbin/init tell that sysvinit: /sbin/init是默认的init manager 我如何删除systemd或设置sysvinit是一个默认的?
我在运行Nginx的服务器上托pipe了多个站点。 我不想为所有虚拟主机使用单独的日志文件,但是我确实希望能够从日志中看出每个请求所属的Nginx虚拟主机。 这对于/var/log/nginx/access.log使用的默认NCSA“组合”格式是不可能的。 Debian / Ubuntu下的Apache默认login到/var/log/apache2/other_vhosts_access.log,其中包括虚拟主机名。 我如何复制这个Nginx的?
我在一台服务器上托pipe两个网站。 每个都有自己的VirtualHost定义。 第一个网站很好地工作,但当我尝试访问第二个我redirect到第一个。 这就像Apache不能识别ServerName的正确的VirtualHost,并将我redirect到默认(第一)网站。 有没有日志或什么东西,我可以看到Apache处理我的请求时采取了哪些步骤? 当它试图find一个匹配的VirtualHost时,是否在任何地方logging了它所使用的ServerName? 更新: 我为我的第二个网站的子域添加了一个VirtualHost部分,并且工作正常。 当我在浏览器中input“interface.domain.com”时,它会从正确的运行在8501端口的应用程序服务器中呈现页面。 但是,当我尝试“www.domain.com”redirect到我的第一个网站。 以下是我的第二个站点的虚拟主机文件。 <VirtualHost *:80> ServerName www.domain.com DocumentRoot /home/domain/current/public RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:8501/$1 [P] </VirtualHost> <VirtualHost *:80> ServerName interface.domain.com DocumentRoot /home/domain/current/public RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:8501/$1 [P] </VirtualHost> apache2ctl -S AH00558: apache2: Could not reliably determine the server's fully qualified […]
在服务器上,我运行docker图像和后缀smtp服务器。 smtp服务器通过本地主机访问,并没有安装在任何types的容器。 问题是我可以通过terminal发送邮件在任何容器外使用sendemail,但我不能通过terminal运行sendemail发送电子邮件在任何容器内。 后缀configuration如下: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending […]