我在另一台服务器上的tomcat前面的一台服务器上使用Apache代理。
如果两个 EC2 实例在同一个可用区,它们之间的带宽是多少?这和实例的网络性能有关系吗?
我在另一台服务器上的tomcat前面的一台服务器上使用Apache代理。
如果两个 EC2 实例在同一个可用区,它们之间的带宽是多少?这和实例的网络性能有关系吗?
我在 httpd 上使用 mod-deflate 来压缩资源。Pagespeed 抱怨外部资源(facebook 之类的按钮)没有被压缩:
Compressing https://fbstatic-a.akamaihd.net/rsrc.php/v2/yU/r/lvRlebSUWb1.js could save 126.0KiB (69% reduction).
有针对这个的解决方法吗?
我添加了以下内容:
ModPagespeed on
ModPagespeedEnableFilters insert_image_dimensions
但是,我的图像仍然如下所示:
<img alt="WordPress" src="wp-admin/images/wordpress-logo.png" height="20px" pagespeed_url_hash="818906537">
这里没有插入宽度。
我正在查看 /var/log/secure 并注意到以下内容:
Dec 9 06:03:20 ip-10-58-218-177 sshd[3794]: Did not receive identification string from 177.99.169.130
Dec 9 06:46:12 ip-10-58-218-177 sshd[3897]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:12 ip-10-58-218-177 sshd[3897]: Invalid user admin from 177.99.169.130
Dec 9 06:46:12 ip-10-58-218-177 sshd[3897]: input_userauth_request: invalid user admin [preauth]
Dec 9 06:46:13 ip-10-58-218-177 sshd[3897]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:14 ip-10-58-218-177 sshd[3899]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:15 ip-10-58-218-177 sshd[3899]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:16 ip-10-58-218-177 sshd[3901]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:16 ip-10-58-218-177 sshd[3901]: Invalid user user from 177.99.169.130
Dec 9 06:46:16 ip-10-58-218-177 sshd[3901]: input_userauth_request: invalid user user [preauth]
Dec 9 06:46:17 ip-10-58-218-177 sshd[3901]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:19 ip-10-58-218-177 sshd[3903]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:19 ip-10-58-218-177 sshd[3903]: Invalid user guest from 177.99.169.130
Dec 9 06:46:19 ip-10-58-218-177 sshd[3903]: input_userauth_request: invalid user guest [preauth]
Dec 9 06:46:19 ip-10-58-218-177 sshd[3903]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:21 ip-10-58-218-177 sshd[3905]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:21 ip-10-58-218-177 sshd[3905]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:23 ip-10-58-218-177 sshd[3907]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:23 ip-10-58-218-177 sshd[3907]: Invalid user xbian from 177.99.169.130
Dec 9 06:46:23 ip-10-58-218-177 sshd[3907]: input_userauth_request: invalid user xbian [preauth]
Dec 9 06:46:23 ip-10-58-218-177 sshd[3907]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
Dec 9 06:46:25 ip-10-58-218-177 sshd[3909]: reverse mapping checking getaddrinfo for grupoazul130.static.host.gvt.net.br [177.99.169.130] failed - POSSIBLE BREAK-IN ATTEMPT!
Dec 9 06:46:25 ip-10-58-218-177 sshd[3909]: Invalid user D-Link from 177.99.169.130
Dec 9 06:46:25 ip-10-58-218-177 sshd[3909]: input_userauth_request: invalid user D-Link [preauth]
Dec 9 06:46:25 ip-10-58-218-177 sshd[3909]: Received disconnect from 177.99.169.130: 11: Bye Bye [preauth]
这是什么意思,我应该担心吗?
$ df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_app001-lv_root
34G 12G 21G 35% /
tmpfs 8.4G 0 8.4G 0% /dev/shm
/dev/sda1 508M 54M 429M 12% /boot
/dev/mapper/vg_app001-lv_home
19G 309M 17G 2% /home
我想运行一个磁盘监控脚本,但因为文件系统太长,该行被分成两行,脚本失败。
有什么建议么?
我创建了一个目录
/xyz/www
具有以下权限:
-rw-r--r--. 1 myuser developers
我编辑了我的 http.conf:
DocumentRoot "/xyz/www/"
<Directory "/xyz/www/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
我收到 403 错误:You don't have permission to access / on this server.
查看日志:
(13)Permission denied: Can't open directory for index: /xyz/www/
我试过递归地添加 777 权限,但仍然有同样的问题。
我刚刚安装了 MySQL-client-5.5.24-1.el6.x86_64.rpm。
我正在尝试连接到另一台机器上的数据库,但是当我运行“mysql”时出现错误:
$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
知道如何运行 mysql 客户端(没有运行服务器)
-rw-r--r--. 1 myusername developers 169 May 17 09:01 build.sh
为什么我可以在没有执行权限的情况下从命令行执行 build.sh 脚本,但是当 crontab 尝试执行它时却失败了?
有人能解释一下为什么 IPTABLES 会阻止此规则列表中的任何端口吗:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:mysql
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
在我看来,ACCEPT ALL 行应该接受所有流量,但事实并非如此。