我在我的 Ubuntu 上安装了这些应用程序:
nginx
php5-fpm
mysql服务器
Redis
...
这些应用程序在每次打开计算机时运行。
如何防止这些应用程序在启动时运行?
因此,这些应用程序只有在我执行“service nginx start”时才能运行。
我的服务器有一个额外的 IP 地址可用,因此我需要在接口文件中分配它。目前,我有这个:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address aaa.aaa.aaa.aaa
netmask 255.255.254.0
gateway bbb.bbb.bbb.bbb
dns-nameservers ccc.ccc.ccc.ccc ddd.ddd.ddd.ddd eee.eee.eee.eee
dns-search vps-number.com
Run Code Online (Sandbox Code Playgroud)
我要添加/分配什么新 IP 地址 ( fff.fff.fff.fff)?然后我如何重新启动它以接受新配置?
我重新安装了 kubuntu 13.10,cgi-bin 不起作用。Apache 下载 cgi 而不是执行它!
我有启用了 cgi mod 的最新 apache。在 000-default.conf 中,我添加了以下选项:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
Options +ExecCGI
AddHandler cgi-script .cgi .pl
Options FollowSymLinks
Require all granted
</Directory>
Action application/x-httpd-php /cgi-bin/php5
Run Code Online (Sandbox Code Playgroud)
并重新启动Apache,但问题仍然存在。
这是我当前的 apache2.conf 设置:
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary …Run Code Online (Sandbox Code Playgroud) htop显示其所有线程的进程名称,即使线程具有自定义名称。我应该如何强制htop显示线程的自定义名称?
不知何故,我的 SSH 从不想问我密码。
所以我在世界某个地方的某个随机服务器上设置了一个 VPS,我想用 ssh 连接到它。
我可以设置一个密钥,但是当我这样做时:
ssh -l some-user IP
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Received disconnect from ##.##.##.##: 2: Too many authentication failures for some-user
Run Code Online (Sandbox Code Playgroud)
当我查看详细信息时,可以看到密码是选项之一:
debug1: Offering RSA public key: some-user@computer
debug1: Authentications that can continue: publickey,password
Run Code Online (Sandbox Code Playgroud)
然而 SSH 从不要求我输入密码。它使用我怀疑的公钥方法尝试了 5 次,然后失败了。为什么不使用密码 ssh 尝试?!
以防万一,我的 ssh_config 文件有:
PasswordAuthentication yes
Run Code Online (Sandbox Code Playgroud)
完整日志
ssh -v -l root ##.##.##.##
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /home/someuser/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for * …Run Code Online (Sandbox Code Playgroud) 我在检测我的打印机 (HP Deskjet 3630)、OS Ubuntu 18.04 时遇到问题。我已经安装了 HPLIP,当我尝试通过“网络/以太网”检测打印机时,我得到以下答案:
HPLIP 无法检测网络中的打印机。
这可能是由于现有的防火墙设置阻止了所需的端口。当您处于受信任的网络环境中时,您可以在防火墙中打开 mdns 和 slp 等网络服务的端口。有关详细步骤,请点击链接。
http://hplipopensource.com/node/375
我禁用了防火墙,但这没有帮助。
我试图将“网络发现方法”更改为 mDNS/Bonjour 和 Avahi,但两者都没有帮助。
从 SMART 数据来看,它显示我有 3 个待处理的扇区计数。(运行 Ubuntu Maverick。)
我尝试关注有关如何解决该问题的论坛链接,但我无法确定写入该扇区的确切扇区数。我已经从磁盘工具运行了完整的自检,但是磁盘工具没有显示 Maverick 中的确切扇区号,但不确定早期版本。这在 Maverick 中发生了变化吗?
如何识别扇区并修复该待处理计数?论坛上的提示安全吗?
PS:我确实有“重新分配的扇区计数”的其他问题,从我用谷歌搜索的内容来看,它无法修复..有什么办法可以防止它上升?
假设一个人希望有一个被阻止的 IP 地址列表。
我看到了以下示例脚本:
BLOCKDB="/path/to/ip.blocked.file"
# omit comments lines
IPS=$(grep -Ev "^#" $BLOCKDB)
for i in $IPS
do
iptables -A INPUT -s $i -j DROP
iptables -A OUTPUT -d $i -j DROP
done
Run Code Online (Sandbox Code Playgroud)
几千行,转换成几千个iptables条目,理智吗?
上限是多少,超过这个上限,系统效率会受到显着影响?
我在我所有的 MX 服务器(主要和 2 个备份)上使用 postgrey。从备份服务器接收邮件时,我需要在主服务器上禁用灰名单。怎么做?
当我将 IP/FQDN 添加到 时/etc/postgrey/whitelist_clients,它没有帮助。
指定POSTGREY_OPTS="--inet=10023 --whitelist-clients=/etc/postgrey/whitelist_clients"in/etc/default/postgrey也没有帮助。