服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我想知道是否有可能在exim4服务器多次authentication失败的情况下自动禁止/过滤一段时间的IP。
如果你这样做: gcloud compute instances list–format=flattened 有一个名为description的字段。 我希望能够添加描述到我的实例,然后能够显示他们时,我列出。 如何通过gcloud命令添加描述? 如何控制台? (我无法find它)。
我正在尝试安装Elixir 1.5和OTP 20.我这样做: pkg install erlang-runtime20 portsnap fetch extract update 我已经改变了/ usr / ports / lang / elixir / Makefile指向最新版本的Elixir和erlang: PORTVERSION= 1.5.1 BUILD_DEPENDS= erlang>=20:lang/erlang RUN_DEPENDS= erlang>=20:lang/erlang 和 make makesum 这里有一个例外: $ sudo make install ===> License APACHE20 accepted by the user ===> elixir-1.5.1_1 depends on file: /usr/local/sbin/pkg – found ===> Fetching all distfiles required by […]
我有两个SQL Server 2008 R2服务器,一个用于PROD,另一个用于DR。 我正在尝试为名为School的数据库添加日志传送。 迄今为止的步骤 备份学校数据库 使用UI还原数据库或使用以下SQL语句即 Restore database "School" from disk ='t:\Data\School.bak' with NoRecovery 。 结果是数据库卡在还原中 如果我Restore database "School" from disk ='t:\Data\School.bak' with recovery.恢复数据库与Restore database "School" from disk ='t:\Data\School.bak' with recovery. 数据库还原完成但日志传送失败。 我删除了数据库,并重新创build它使用Restore database "School" from disk ='t:\Data\School.bak' with NoRecovery但它仍然卡在**Norecovery** 。 有没有办法,我可以恢复数据库,以便不卡在恢复状态,我可以完成日志传送。
我有一个主要的EC2服务器(Windows)和一个备份,我一直停下来,所以我不必为此付费。 我正在寻找最简单的方法,以确保如果我需要启动备份,它将有主要的最新文件。 我可以对卷进行快照,但是这会花费一些时间,并且在计划外停机的情况下会导致更多的停机时间。 我应该设置一个同步到S3,然后在开始备份后从同一个文件同步? 我的问题是很难search,因为如果我search有关同步文件的信息,我会得到的东西,保持运行的EC2实例同步,如果我使用“备份”一词,我得到的信息备份文件到S3和Dropbox等。
我在Windows 8 Hyper-V上运行的虚拟Debian 8机器上遇到了date停滞的问题。 我没有做很多安装后的configuration,这是一个故意安装而不是花哨的东西 – 我只是使用该框作为独立的POSIX环境,通过SSHloginPuTTY。 date似乎“冻结”,当主持人睡觉,并在一天左右后翻转主机笔记本电脑上的盖子后,将其唤醒。 从Windows上的PuTTy到VM的SSH会话始终保持不变。 我不想用Linux的Hyper-V特定的时间同步服务,我很满意使用NTP。 NTP已经安装了apt-get install ntp ,最初我用systemctl status ntp获得了以下内容: ● ntp.service – LSB: Start NTP daemon Loaded: loaded (/etc/init.d/ntp) Active: active (running) since Mon 2017-08-14 23:16:55 CEST; 20h ago Process: 1167 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS) Process: 1175 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS) CGroup: /system.slice/ntp.service └─1184 /usr/sbin/ntpd -p /var/run/ntpd.pid -g […]
我正在尝试设置一个VirtualHost,它可以捕获所有不属于任何其他VirtualHost的子域。 但是,这样,我不断得到index.html,它不会带我到error.php页面。 我的操作系统是Ubuntu 16.04,我没有更改/ etc / apache2中的apache.conf。 我的其他VirtualHost是运行在storage.declanmarks.pw的Nextcloud。 <VirtualHost *:80> DocumentRoot /var/www/main ServerName null ServerAlias * Redirect 404 /error.php ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 我不是Apache的专家。
我正在设置dovecot + sieve插件。 我正在起诉Maildir格式。 我使用雷鸟阅读电子邮件,所以我不需要我的服务器上的networking邮件。 基本的configuration工作正常,但现在我想在sieve中添加一些规则来redirect一些邮件,比如这个例子: require ["envelope", "fileinto"]; if envelope :is "from" "[email protected]" { fileinto "Test"; } 但筛没有find“testing”目录,所以它把它放入“收件箱”。 /var/log/syslog输出: dovecot: lda([email protected]): Error: sieve: msgid=<[…]>: failed to store into mailbox 'Test': Mailbox doesn't exist: Test dovecot: lda([email protected]): sieve: msgid=<[…]>: stored mail into mailbox 'INBOX' 所以我尝试添加一个邮箱手动(但理想情况下,我希望它是自动的,当sieve请求一个新的邮箱)通过使用这个conf在dovecot: namespace inbox { inbox = yes location = mailbox Drafts […]
我在RHEL机器的/etc/security/limits.conf中设置了以下值。 * hard nofile 65535 @student hard nofile 100000 在设置用户特定的最大打开文件数时,这是否正确? 如果* hard nofile值总是大于用户特定nofile值的总和?
我在Debian 10上,试图应用一些我认为在旧版本的Debian上工作的防火墙规则。 但是现在,当我尝试应用它们时,出现错误。 这似乎与:FORWARD ACCEPT [0:0] ,但我无法弄清楚问题所在。 我* nat规则: *nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -o ens3 -j MASQUERADE COMMIT 当我尝试加载它们时: $ sudo netfilter-persistent reload run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables start run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited with return code 1 问题似乎在第4行: $ sudo iptables-restore –test /etc/iptables/rules.v4 iptables-restore […]