这是一个奇怪的。
我已经通过以下方式安装了 CentOS 6 的 EPEL
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Run Code Online (Sandbox Code Playgroud)
尝试安装 HAProxy:
# yum update
# yum install haproxy
Run Code Online (Sandbox Code Playgroud)
但收到:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.heanet.ie
* epel: fedora.mirror.nexicom.net
* extras: ftp.heanet.ie
* updates: ftp.heanet.ie
Setting up Install Process
No package haproxy available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)
不明白为什么找不到haproxy!帮助?
我试图将 nginx 中 http 和 https 的根域重定向到同一个子目录 (https):
所以例如
http://example.com -> https://example.com/subdirectory
https://example.com -> https://example.com/subdirectory
Run Code Online (Sandbox Code Playgroud)
这在我看来很简单,但我正在努力实现这一目标。我试过使用重写的变体并返回 301,但总是以重定向循环结束。
我当前的配置(导致循环):
server {
listen 80;
server_name example.com;
return 301 https://$server_name/subdirectory;
}
server {
listen 443 ssl spdy;
server_name example.com;
return 301 https://$server_name/subdirectory;
}
Run Code Online (Sandbox Code Playgroud)
所以基本上,我试图从根域重定向到 https 上的相同子目录,无论根域是通过 http 还是 https 请求的。
我刚刚更换了服务器上的硬盘。
它是 RAID 1 阵列的一部分。sdb1 分区现在每隔几个小时就会出现故障。
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multi path] [faulty]
md1 : active raid1 sdb1[2](F) sda1[0]
463216576 blocks [2/1] [U_]
md3 : active raid1 sdb3[1] sda3[0]
20970432 blocks [2/2] [UU]
Run Code Online (Sandbox Code Playgroud)
妈妈:
# mdadm -D /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Tue Dec 25 15:04:23 2012
Raid Level : raid1
Array Size : 463216576 (441.76 GiB 474.33 GB)
Used Dev Size : 463216576 (441.76 GiB 474.33 GB)
Raid …Run Code Online (Sandbox Code Playgroud) 301-redirect ×1
bad-blocks ×1
epel ×1
haproxy ×1
hard-drive ×1
nginx ×1
raid ×1
repository ×1
rpm ×1
smartctl ×1