Find the answer to your Linux question:
Results 1 to 2 of 2
Hi there, Im new to RHEL5, but comfortable with linux in general. Im trying to setup a dedicated memcached server for my webservers. currently our setup is as follows: a ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    1

    Open Port for memcached

    Hi there,
    Im new to RHEL5, but comfortable with linux in general. Im trying to setup a dedicated memcached server for my webservers.

    currently our setup is as follows:
    a load balancer,
    two servers attached to the load balancer
    a new server to run dedicated memcached

    Ive installed memcached and started the service.

    we also have another testing server on the same LAN.

    Im testing a PHP application using memcached and get a cannot connect error.

    This lead me to think that the port wasnt open. So i googled how to open the port and it returned a few results doing the same, so i tried to follow.

    The suggestion was to open the port using IPTables, so i tried to edit the iptables config.

    i added the suggested line and tried to restart iptables but it failed.

    "Applying iptables firewall rules: iptables-restore: line 1 failed"

    so i removed the line i added and tried to restart, but got the same error.

    Am i going about this the right way?

    Thanks
    Ash

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Is there even a firewall to poke holes into?
    That iptables rule (which, by the way?) might not be neccesary.
    You can check with iptables -L -n

    Some questions:
    - Is memcached running?
    - Which IP is it bound to?
    - Which port? 11211 is the default afaik

    If all of the above is given,
    try to telnet to <IP> and <port> on the memcache server.
    If you dont get a "connection refused", but a connection of some sort,
    go to the php server and do the same telnet.
    If you still get a connection: congratulations. memcache is up and running.

    From now on, you can concentrate on php.
    It needs the pecl memcache extension.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...