AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-264013

KinsDotNet's questions

Martin Hope
KinsDotNet
Asked: 2016-06-02 09:02:59 +0800 CST

如何确定 CentOS 中哪个网络适配器是 SFP+?

  • -1

我有一台带有 SFP+ 模块的服务器。我们将利用它来获得 10GB 的速度。我有适配器 em1、em2、em3、em4。如何确定 Centos 6.5 中的 SFP+ 适配器是哪个适配器?

centos networking linux-networking centos6
  • 2 个回答
  • 1758 Views
Martin Hope
KinsDotNet
Asked: 2016-05-29 15:01:48 +0800 CST

为什么我的 awk 子命令失败?

  • 1

当我跑

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%   /

据我了解,它应该返回已用磁盘空间的百分比。

unix unix-shell
  • 1 个回答
  • 1020 Views
Martin Hope
KinsDotNet
Asked: 2016-04-29 07:52:21 +0800 CST

如何检查 Centos 6.5 中的电源设置?

  • 0

我有一个运行 Centos 6.5 的无头服务器。我们的顾问要求我确保将电源设置设置为最佳性能,而不是平衡或节能。

如何检查此设置或调整其配置?

我知道 gnome 在 GUI 中有电源设置,但无论如何我都没有安装桌面环境。

linux redhat centos6
  • 1 个回答
  • 817 Views
Martin Hope
KinsDotNet
Asked: 2015-04-22 08:13:26 +0800 CST

如何在托管网站的服务器上使用反向代理?

  • 2

我有一个托管网站的服务器,我试图将其另外用作反向代理服务器。目的是将应用程序的 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 并超时。

linux
  • 1 个回答
  • 853 Views
Martin Hope
KinsDotNet
Asked: 2015-04-14 12:16:17 +0800 CST

如何在与使用 apache 的托管网站相同的物理服务器上设置反向代理?

  • 0

如何使用一台服务器完成以下两项任务:

  1. 为托管在http://foo.bar.com的网站提供服务
  2. 使用反向代理将所有用于http://loremipsum.bar.com的流量定向到“http://www.acme.com:87 60/Application”。

该网站已经存在并正确配置,我只需要添加#2 的功能。如何在同一物理服务器上执行此操作?我想答案是使用 Virtualhosts,但我不知道如何在一个物理机器上同时使用这两种方法。

apache-2.2
  • 1 个回答
  • 62 Views
Martin Hope
KinsDotNet
Asked: 2015-01-09 10:32:08 +0800 CST

将 Centos 6.6 NIC 绑定到双倍带宽

  • 2

我正在配置一个 hadoop 集群,为我们的供应商在本周安装其 hadoop 管理器做准备。安装前检查表建议 1gb 以太网是不够的,我应该绑定两个网卡以使每台机器的带宽加倍。

为此,我正在尝试按照此处的说明绑定 nic: http ://www.unixmen.com/linux-basics-create-network-bonding-centos-6-5/

但是,此页面没有提及将网络带宽加倍,并列出了可以执行的几种不同类型的绑定,例如自适应传输负载平衡、主动备份、广播和自适应负载平衡。

我应该怎么做才能通过绑定 nic 将这些服务器的带宽加倍?有没有我可以查看的教程来完成这个?

centos
  • 1 个回答
  • 1651 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve