Articles of ubuntu 12.04

如何确定我的服务器上的哪个网站处于繁忙的通信状态?

我目前在许多其他网站使用的服务器上通过API连接到一个网站。 当我使用terminal命令“顶部”,我可以看到万维网数据是我的服务器运行缓慢的主要罪魁祸首。 如何识别哪个网站提出的API最多? 有没有办法看到万维网数据的引用? 谢谢

如何configurationtcp包装

我有一个IP地址为192.168.0.1的服务器和一个IP地址为192.168.0.1的客户端,两者都可以互相连接。 现在的问题是我已经在我的服务器端configuration了TCP Wrapper,并在它的/etc/hosts.deny文件中附加了以下行 sshd : 192.168.0.0/255.255.255.0 \ : twist /bin/echo "Access Denied!" 但是,当我尝试从客户端机器的IP地址192.168.0.2 SSH提供消息: ssh_exchange_identification: Connection closed by remotehost 但为什么它没有显示我configuration的消息? 请帮忙。

鱿鱼使互联网变得缓慢

我在ubuntu服务器的networking上configuration了squid代理。 所有的stream量被Mikrotik路由器转移到代理服务器。 configuration/etc/squid3/squid.conf鱿鱼代理之后,我把/etc/squid3/squid.conf改为 http_port 8080 #changed from default port 3128 /var/log/squid3/access.log #uncomment access log variable_hostname myproxy #added http_access allow all #added 我已经添加了以下几行squid.conf来使鱿鱼高度匿名 forwarded_for transparent header_access Allow allow all header_access Authorization allow all header_access Cache-Control allow all header_access Content-Encoding allow all header_access Content-Length allow all header_access Content-Type allow all header_access Date allow all header_access Expires allow […]

与UFWlocking了自己的SSH

我有我的服务器设置为端口21966接受SSH连接,我按照一些步骤来configurationufw,但现在已经locking我在任何端口的SSH访问! 我已经能够启动我的服务器进入“救援”模式,为我提供了一个SSH救援账户,通过它我可以安装硬盘驱动器并查看我的文件。 我不知道该怎么做,因为ufww服务没有运行,所以我不能禁用或卸载。

获取URL到debian .deb包

我正在尝试使用PHP安装IronWorker ,并且需要将Imagick PECL扩展或debian软件包的 URL添加到IronWorker .workerconfiguration中。 我已经find了上述链接上的Ubuntu 12.04包,但我不知道如何获得.deb文件的直接URL。 谁能帮忙? 通常可以安装这个 sudo apt-get install php5-imagick ,但由于我正在使用IronWorker,因此我需要直接链接到.deb文件。

Cron没有将Redis置于从属模式

我的组织有Redis以主/从configuration运行,使用Keepalived在两者之间切换。 发现当Slave实例因某种原因死亡时,Keepalived不会重新启动它。 我开始写一个cron作业来检查redis是否正在运行,如果从站死了,重新启动它。 #!/bin/bash #redis_cron_restart.sh ######variables######## REDIS_IP="10.19.105.229" REDIS_CONF="/var/lib/redis/redis.conf" #Check to see if Redis is running killall -0 redis-server if [ $? -eq 1 ] then date >> /var/lib/redis/log.txt echo redis-server not running. Checking redis master >> /var/lib/redis/log.txt redis-cli -h ${REDIS_IP} PING if [ $? -eq 1 ] then echo redis master not running. Doing nothing. […]

后缀:警告:连接到127.0.0.1:10023:连接被拒绝,不接收来自外部域的邮件

我有一个运行时间非常短的Postfix服务器,它工作,但我不得不今天重新启动服务器,我不再接收来自外部来源的电子邮件: Jan 23 01:34:44 myservername postfix/smtpd[1055]: connect from db3ehsobe006.messaging.microsoft.com[213.199.154.144] Jan 23 01:34:45 myservername postfix/smtpd[1055]: warning: connect to 127.0.0.1:10023: Connection refused Jan 23 01:34:45 myservername postfix/smtpd[1055]: warning: problem talking to server 127.0.0.1:10023: Connection refused Jan 23 01:34:46 myservername postfix/smtpd[1055]: warning: connect to 127.0.0.1:10023: Connection refused Jan 23 01:34:46 myservername postfix/smtpd[1055]: warning: problem talking to server 127.0.0.1:10023: […]

使用sudo(或从新贵)运行Autossh时要求input密码

我有一个暴发户的工作/etc/init/tunnel.conf : description "SSH Tunnel" start on (net-device-up IFACE=eth0) stop on runlevel[016] respawn exec autossh -nNT -o ServerAliveInterval=15 -R 12345:localhost:22 myuser@myserver 当我看到/var/log/upstart/tunnel.log : Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,gssapi-with-mic,password). 但如果我尝试从terminal autossh -R 12345:localhost:22 myuser@myserver 它连接到myserver而不要求我input密码(我已经复制了SSH密钥) 当我使用sudo运行它时: sudo autossh -R 12345:localhost:22 myuser@myserver 它问我为我的服务器密码,所以我想这是我的暴发性工作的问题。 为什么SSH要求我input密码,我们以root身份运行它?

我怎样才能提供一个默认的configuration文件与木偶,但允许服务器pipe理员来更新它

我想用puppet(例如my.cnf)给节点服务器提供一个“default-example”configuration文件,但我想让服务器pipe理员尽可能多地更新它。 (基本上,我向IT研究人员提供“基础”虚拟机,他们自己调整) 我'与傀儡试图与function“文件”,但它注意到,当我试图改变它… 有解决scheme吗?

设置fail2ban忽略dynamicIP后面的连接

使用fail2ban来保护DigitalOcean上的Ubuntu 12.04 x64服​​务器,同时编辑/etc/fail2ban/jail.local还有这个部分: [DEFAULT] # "ignoreip" can be an IP address, a CIDR mask or a DNS host ignoreip = 127.0.0.1/8 这是pipe理员将连接的IP,但如果pipe理员有一个dynamic的IP有没有解决scheme? 或者这只是打败了目的?