The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Strange Result in Installing Memcached

Discussion in 'General Discussion' started by xrvel, Mar 21, 2015.

  1. xrvel

    xrvel Member

    Joined:
    Oct 25, 2014
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I use WHM & Centos 64 bit.
    I've tried installing memcached using these commands ( i read from http://memcached.org/downloads )

    wget http://memcached.org/latest
    tar -zxvf memcached-1.x.x.tar.gz
    cd memcached-1.x.x
    ./configure && make && make test && sudo make install

    I also installed libevent & rerun the last command.

    However last lines that i saw are :
    Code:
    All tests successful.
    Files=50, Tests=7386, 130 wallclock secs ( 1.57 usr  0.20 sys +  4.96 cusr  1.45 csys =  8.18 CPU)
    Result: PASS
    File 'assoc.c' Lines executed:44.92% of 118
    File 'cache.c' Lines executed:53.95% of 76
    File 'daemon.c' Lines executed:48.00% of 25
    File 'hash.c' Lines executed:60.00% of 10
    File 'items.c' Lines executed:82.19% of 539
    File 'jenkins_hash.c' Lines executed:96.91% of 97
    File 'memcached.c' Lines executed:70.70% of 2768
    File 'murmur3_hash.c' Lines executed:0.00% of 33
    File 'slabs.c' Lines executed:67.68% of 427
    File 'stats.c' Lines executed:91.01% of 89
    File 'thread.c' Lines executed:78.10% of 379
    File 'util.c' Lines executed:75.00% of 72
    make  install-recursive
    make[1]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22'
    Making install in doc
    make[2]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make  install-am
    make[3]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make[4]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make[4]: Nothing to be done for `install-exec-am'.
    /bin/mkdir -p '/usr/local/share/man/man1'
    /usr/bin/install -c -m 644 memcached.1 '/usr/local/share/man/man1'
    make[4]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make[3]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make[2]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22/doc'
    make[2]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22'
    make[3]: Entering directory `/backup/kitchen/memcached/memcached-1.4.22'
    /bin/mkdir -p '/usr/local/bin'
      /usr/bin/install -c memcached '/usr/local/bin'
    /bin/mkdir -p '/usr/local/include/memcached'
    /usr/bin/install -c -m 644 protocol_binary.h '/usr/local/include/memcached'
    make[3]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22'
    make[2]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22'
    make[1]: Leaving directory `/backup/kitchen/memcached/memcached-1.4.22'
    
    Seems no error, but how can i start memcached ?

    I've tried these 2, but no result

    Code:
    root@mybox [/backup/memcached/memcached-1.4.22]# /etc/init.d/memcached start
    -bash: /etc/init.d/memcached: No such file or directory
    root@mybox [/backup/memcached/memcached-1.4.22]# service memcached start
    memcached: unrecognized service
    root@mybox [/backup/memcached/memcached-1.4.22]# ps ax | grep memcached
    26616 pts/1    S+     0:00 grep memcached
    
    nvm finally i found this from google :D
    Code:
    memcached -d -u nobody -m 2048-p 11211127.0.0.1
     
    #1 xrvel, Mar 21, 2015
    Last edited: Mar 21, 2015
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I see you have used high memory for memcached. Are you sure you can allocate that much memory to memcached daemon ? Also, you have used nobody user to execute processes which is not recommanded. I would suggest you to add user memcached and run the daemon under it.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,746
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
     
Loading...

Share This Page