我有一台带有 SFP+ 模块的服务器。我们将利用它来获得 10GB 的速度。我有适配器 em1、em2、em3、em4。如何确定 Centos 6.5 中的 SFP+ 适配器是哪个适配器?
主页
/
user-264013
KinsDotNet's questions
KinsDotNet
Asked:
2016-05-29 15:01:48 +0800 CST
当我跑
df -hl | grep '/dev/disk1' | awk '{sub(/%/, \"\");print $5}'
我收到以下错误:
awk: syntax error at source line 1
context is
{sub(/%/, >>> \ <<< "\");}
awk: illegal statement at source line 1
我似乎在 awk sub 上找不到任何文档。
df -hl | grep '/dev/disk1'
返回
/dev/disk1 112Gi 94Gi 18Gi 85% 24672655 4649071 84% /
据我了解,它应该返回已用磁盘空间的百分比。
KinsDotNet
Asked:
2016-04-29 07:52:21 +0800 CST
KinsDotNet
Asked:
2015-04-22 08:13:26 +0800 CST
我有一个托管网站的服务器,我试图将其另外用作反向代理服务器。目的是将应用程序的 url 从http://www.acme.bar.com:8760/Application混淆到 loremipsum.bar.com。
我有一个 loremipsum.bar.com 的别名,指向反向代理/网络主机,具有以下虚拟主机配置:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/public
<Directory /var/www/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
order allow,deny
allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<VirtualHost *:80>
ProxyPass / http://www.acme.bar.com:8760/Application
ProxyPassReverse / http://www.acme.bar.com:8760/Application
ServerName loremipsum.bar.com
</VirtualHost>
不幸的是,现在访问 loremipsum.bar.com 会出现 ERR_TOO_MANY_REDIRECTS 并超时。
KinsDotNet
Asked:
2015-04-14 12:16:17 +0800 CST
如何使用一台服务器完成以下两项任务:
- 为托管在http://foo.bar.com的网站提供服务
- 使用反向代理将所有用于http://loremipsum.bar.com的流量定向到“http://www.acme.com:87 60/Application”。
该网站已经存在并正确配置,我只需要添加#2 的功能。如何在同一物理服务器上执行此操作?我想答案是使用 Virtualhosts,但我不知道如何在一个物理机器上同时使用这两种方法。
KinsDotNet
Asked:
2015-01-09 10:32:08 +0800 CST
我正在配置一个 hadoop 集群,为我们的供应商在本周安装其 hadoop 管理器做准备。安装前检查表建议 1gb 以太网是不够的,我应该绑定两个网卡以使每台机器的带宽加倍。
为此,我正在尝试按照此处的说明绑定 nic: http ://www.unixmen.com/linux-basics-create-network-bonding-centos-6-5/
但是,此页面没有提及将网络带宽加倍,并列出了可以执行的几种不同类型的绑定,例如自适应传输负载平衡、主动备份、广播和自适应负载平衡。
我应该怎么做才能通过绑定 nic 将这些服务器的带宽加倍?有没有我可以查看的教程来完成这个?