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-47698

Andres SK's questions

Martin Hope
Andres SK
Asked: 2017-11-15 10:28:53 +0800 CST

允许远程连接 memcache 服务器

  • 1

我的 memcache 服务器已启动并在Server A上运行。

service memcached start
memcached -d -u nobody -m 512 -p 11211 127.0.0.1
chkconfig --list | grep memcache
chkconfig memcached on

我在服务器 B(不同的 IP)上也有一个 Web 应用程序。如何为 memcache 配置服务器 A以允许来自服务器 B的传入连接?

memcached
  • 1 个回答
  • 5403 Views
Martin Hope
Andres SK
Asked: 2014-06-20 08:18:51 +0800 CST

如何让 iptables 允许新端口(用于网络服务器套接字处理程序)

  • -2

在本地开发服务器中,我没有任何 iptables 规则(在 Mac 上运行)。然而,生产服务器以某些规则运行 CentOS 6。

我需要添加一个规则,允许客户端连接到1337端口。

这是我当前的 iptables 文件。是否有我必须插入新规则的特定订单位置?

# Generated by iptables-save v1.4.7 on Tue Jun  4 17:42:56 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3:412]
-A INPUT -p tcp -m tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 11211 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -p tcp -m tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
COMMIT
# Completed on Tue Jun  4 17:42:56 2013
iptables
  • 3 个回答
  • 14400 Views
Martin Hope
Andres SK
Asked: 2014-06-19 09:25:26 +0800 CST

为php安装ext-libevent、ext-libev、ext-event

  • 1

我在我的 LAMP 环境(CentOS 6.4)上安装了reactphp 。安装成功后,我收到以下消息:

react/react suggests installing ext-libevent (Allows for use of a more performant event-loop implementation.)

react/react suggests installing ext-libev (Allows for use of a more performant event-loop implementation.)

react/react suggests installing ext-event (Allows for use of a more performant event-loop implementation.)

如何安装 ext-libevent、ext-libev 和 ext-event?谢谢!

centos
  • 1 个回答
  • 5367 Views
Martin Hope
Andres SK
Asked: 2014-03-07 07:52:17 +0800 CST

iptables REJECT 不允许 ftp 服务器列出文件

  • 0

我不得不在我的 iptables 文件中注释这两行,因为由于某种原因它拒绝了 ftp 列表(它确实连接到 ftp 服务器,但它从不列出文件然后它只是超时):

-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited

...我把它改成...

# -A INPUT -j REJECT --reject-with icmp-host-prohibited
# -A FORWARD -j REJECT --reject-with icmp-host-prohibited

可能是什么问题?我在另一台服务器中有相同的 2 行,我在该服务器的 ftp 中列出文件没有问题。

如果您需要,这是完整的 iptables 文件:

# Generated by iptables-save v1.4.7 on Wed Jan 15 22:36:31 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3:412]
-A INPUT -p tcp -m tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 11211 -j ACCEPT
# -A INPUT -j REJECT --reject-with icmp-host-prohibited
# -A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -p tcp -m tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
COMMIT
# Completed on Wed Jan 15 22:36:31 2014
iptables
  • 1 个回答
  • 166 Views
Martin Hope
Andres SK
Asked: 2013-06-05 10:14:11 +0800 CST

远程客户端尝试连接到 CentoOS 中的 vsftpd 返回连接被拒绝

  • 0

我正在尝试在我的服务器中配置 ftp 服务。一切似乎都已到位,但客户端总是收到此响应:Connection refused。

这是我的 iptables 文件的内容

# Generated by iptables-save v1.4.7 on Tue Jun  4 17:43:03 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3:412]
-A INPUT -p tcp -m tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -p tcp -m tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
COMMIT
# Completed on Tue Jun  4 17:43:03 2013

如果您需要它,这就是iptables -L返回的内容:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql state NEW,ESTABLISHED 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp 

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     tcp  --  anywhere             anywhere            tcp spt:mysql state ESTABLISHED 

我很确定它与 iptables 有关,尽管我可能是错的。我遵循了本教程中的每一步。有任何想法吗?

iptables
  • 1 个回答
  • 77 Views
Martin Hope
Andres SK
Asked: 2012-12-08 07:43:32 +0800 CST

更改域别名并从黑莓上发送邮件

  • 0

我在 Google Apps 中为电子邮件服务器配置了 domain1.com。最近公司将其名称更改为 domain2.com,并且该新域已添加为 Google Apps 中 domain1.com 的别名。

如果电子邮件是从 Web 界面发送的,那么将“发送电子邮件自”更改为始终使用别名真的很容易。问题是所有员工都使用黑莓设备。有没有办法将这些设备配置为默认从@domain2.com 发送电子邮件?

谢谢

email-server
  • 1 个回答
  • 210 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