当前位置:论坛首页 > Linux面板 > 求助

【已回应】memcached安装失败

发表在 Linux面板2018-10-9 19:16 [复制链接] 14 3366

/bin/mkdir -p '/usr/local/libmemcached/include/libmemcached'
/usr/bin/install -c -m 644  libmemcached/memcached.h libmemcached/memcached.hpp libmemcached/util.h '/usr/local/libmemcached/include/libmemcached'
/bin/mkdir -p '/usr/local/libmemcached/include/libmemcachedutil-1.0'
/usr/bin/install -c -m 644  libmemcachedutil-1.0/flush.h libmemcachedutil-1.0/ostream.hpp libmemcachedutil-1.0/pid.h libmemcachedutil-1.0/ping.h libmemcachedutil-1.0/pool.h libmemcachedutil-1.0/util.h libmemcachedutil-1.0/version.h '/usr/local/libmemcached/include/libmemcachedutil-1.0'
/bin/mkdir -p '/usr/local/libmemcached/lib/pkgconfig'
/usr/bin/install -c -m 644 support/libmemcached.pc '/usr/local/libmemcached/lib/pkgconfig'
make[2]: Leaving directory `/root/libmemcached-1.0.18'
make[1]: Leaving directory `/root/libmemcached-1.0.18'
Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory

使用道具 举报 只看该作者 回复
发表于 2018-10-9 19:52:50 | 显示全部楼层
dddddddddddddddddd
使用道具 举报 回复 支持 反对
发表于 2018-10-10 09:41:59 | 显示全部楼层
可能是权限不足或者其他问题,重新安装,如果还是这样的话就自己用ln命令设置软连接
使用道具 举报 回复 支持 反对
发表于 2018-10-10 10:48:44 | 显示全部楼层
你直接把/tmp/panelExec.log这个文件上传我看看具体的报错
使用道具 举报 回复 支持 反对
发表于 2018-10-10 20:05:40 | 显示全部楼层
河妖 发表于 2018-10-10 10:48
你直接把/tmp/panelExec.log这个文件上传我看看具体的报错

如图。。。。。。。。。。。。。。。。。。。。。。。。
20181010080553875.png
使用道具 举报 回复 支持 反对
发表于 2018-10-10 20:08:25 | 显示全部楼层
河妖 发表于 2018-10-10 10:48
你直接把/tmp/panelExec.log这个文件上传我看看具体的报错

如图2.。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
20181010080853434.png
使用道具 举报 回复 支持 反对
发表于 2018-10-10 20:10:48 | 显示全部楼层
河妖 发表于 2018-10-10 10:48
你直接把/tmp/panelExec.log这个文件上传我看看具体的报错

算了,还是发这个文件吧

panelExec.zip

11.91 KB, 下载次数: 13747

使用道具 举报 回复 支持 反对
发表于 2018-10-11 09:43:44 | 显示全部楼层
你系统是什么系统?
使用道具 举报 回复 支持 反对
发表于 2018-10-11 22:07:21 | 显示全部楼层
河妖 发表于 2018-10-11 09:43
你系统是什么系统?

centos6.5 6.6都出这个错误,纯净系统
使用道具 举报 回复 支持 反对
发表于 2018-10-12 09:28:53 | 显示全部楼层
你进ssh 执行这条命令后再去安装
  1. yum install libevent libevent-devel -y
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-10-12 22:31:25 | 显示全部楼层
河妖 发表于 2018-10-12 09:28
你进ssh 执行这条命令后再去安装

安装上去了,但是无法启动
'/usr/local/libmemcached/include/libmemcached-1.0/struct'
/bin/mkdir -p '/usr/local/libmemcached/include/libhashkit'
/usr/bin/install -c -m 644  libhashkit/hashkit.h '/usr/local/libmemcached/include/libhashkit'
/bin/mkdir -p '/usr/local/libmemcached/include/libhashkit-1.0'
/usr/bin/install -c -m 644  libhashkit-1.0/algorithm.h libhashkit-1.0/behavior.h libhashkit-1.0/configure.h libhashkit-1.0/digest.h libhashkit-1.0/function.h libhashkit-1.0/has.h libhashkit-1.0/hashkit.h libhashkit-1.0/hashkit.hpp libhashkit-1.0/strerror.h libhashkit-1.0/string.h libhashkit-1.0/str_algorithm.h libhashkit-1.0/types.h libhashkit-1.0/visibility.h '/usr/local/libmemcached/include/libhashkit-1.0'
/bin/mkdir -p '/usr/local/libmemcached/include/libmemcached'
/usr/bin/install -c -m 644  libmemcached/memcached.h libmemcached/memcached.hpp libmemcached/util.h '/usr/local/libmemcached/include/libmemcached'
/bin/mkdir -p '/usr/local/libmemcached/include/libmemcachedutil-1.0'
/usr/bin/install -c -m 644  libmemcachedutil-1.0/flush.h libmemcachedutil-1.0/ostream.hpp libmemcachedutil-1.0/pid.h libmemcachedutil-1.0/ping.h libmemcachedutil-1.0/pool.h libmemcachedutil-1.0/util.h libmemcachedutil-1.0/version.h '/usr/local/libmemcached/include/libmemcachedutil-1.0'
/bin/mkdir -p '/usr/local/libmemcached/lib/pkgconfig'
/usr/bin/install -c -m 644 support/libmemcached.pc '/usr/local/libmemcached/lib/pkgconfig'
make[2]: Leaving directory `/root/libmemcached-1.0.18'
make[1]: Leaving directory `/root/libmemcached-1.0.18'
使用道具 举报 回复 支持 反对
发表于 2018-10-13 09:30:00 | 显示全部楼层
进ssh 输入这条命令看看具体报错
  1. /etc/init.d/memcached start
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-10-13 10:06:52 | 显示全部楼层
是因为官方的sh文件有问题
你是什么版本的php
使用道具 举报 回复 支持 反对
发表于 2018-10-13 10:07:55 | 显示全部楼层
自行修改version="72" php版  可以使用这个sh安装
  1. #!/bin/bash
  2. PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
  3. export PATH
  4. memcachedVer="1.5.6"
  5. memcachedPhpVer="3.0.4"
  6. version="72"
  7. download_Url='http://download.bt.cn';
  8. srcPath='/root';
  9.        
  10.         yum -y remove libmemcached libmemcached-devel
  11.         yum install cyrus-sasl-plain cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib libevent libevent-devel -y
  12.         if [ ! -f "/usr/local/memcached/bin/memcached" ];then
  13.                 cd $srcPath
  14.                 wget $download_Url/src/memcached-${memcachedVer}.tar.gz -T 5
  15.                 tar -xzf memcached-${memcachedVer}.tar.gz
  16.                 cd memcached-${memcachedVer}
  17.                 ./configure --prefix=/usr/local/memcached
  18.                 make && make install
  19.                 ln -sf /usr/local/memcached/bin/memcached /usr/bin/memcached

  20.                 wget -O /etc/init.d/memcached $download_Url/init/init.d.memcached -T 5
  21.                 chmod +x /etc/init.d/memcached
  22.                 chkconfig --add memcached
  23.                 chkconfig --level 2345 memcached on

  24.                 #if [ ! -f "/etc/init.d/iptables" ];then
  25.                         #firewall-cmd --permanent --zone=public --add-port=11211/tcp
  26.                         #firewall-cmd --permanent --zone=public --add-port=11211/udp
  27.                         #firewall-cmd --reload
  28.                 #else
  29.                         #/sbin/iptables -A INPUT -p tcp --dport 11211 -j ACCEPT
  30.                         #/sbin/iptables -A INPUT -p udp --dport 11211 -j ACCEPT
  31.                         #service iptables save
  32.                         #service iptables restart
  33.                 #fi

  34.                 cd $srcPath
  35.                 wget $download_Url/src/libmemcached-1.0.18.tar.gz -T 5
  36.                 tar -zxf libmemcached-1.0.18.tar.gz
  37.                 cd libmemcached-1.0.18
  38.                 ./configure --prefix=/usr/local/libmemcached --with-memcached --enable-sasl
  39.                 make && make install
  40.                
  41.                 /etc/init.d/memcached start
  42.                
  43.                 cd $srcPath
  44.                 rm -rf memcached*
  45.                 rm -rf libmemcached*
  46.         fi
  47.        
  48.         if [ ! -d /www/server/php/$version ];then
  49.                 return;
  50.         fi
  51.        
  52.         if [ ! -f "/www/server/php/$version/bin/php-config" ];then
  53.                 echo "php-$vphp 未安装,请选择其它版本!"
  54.                 echo "php-$vphp not install, Plese select other version!"
  55.                 return
  56.         fi
  57.        
  58.         isInstall=`cat /www/server/php/$version/etc/php.ini|grep 'memcached.so'`
  59.         if [ "${isInstall}" != "" ];then
  60.                 echo "php-$vphp 已安装过memcached,请选择其它版本!"
  61.                 echo "php-$vphp not install, Plese select other version!"
  62.                 return
  63.         fi
  64.                
  65.         case "${version}" in
  66.                 '52')
  67.                 extFile='/www/server/php/52/lib/php/extensions/no-debug-non-zts-20060613/memcached.so'
  68.                 ;;
  69.                 '53')
  70.                 extFile='/www/server/php/53/lib/php/extensions/no-debug-non-zts-20090626/memcached.so'
  71.                 ;;
  72.                 '54')
  73.                 extFile='/www/server/php/54/lib/php/extensions/no-debug-non-zts-20100525/memcached.so'
  74.                 ;;
  75.                 '55')
  76.                 extFile='/www/server/php/55/lib/php/extensions/no-debug-non-zts-20121212/memcached.so'
  77.                 ;;
  78.                 '56')
  79.                 extFile='/www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226/memcached.so'
  80.                 ;;
  81.                 '70')
  82.                 extFile='/www/server/php/70/lib/php/extensions/no-debug-non-zts-20151012/memcached.so'
  83.                 ;;
  84.                 '71')
  85.                 extFile='/www/server/php/71/lib/php/extensions/no-debug-non-zts-20160303/memcached.so'
  86.                 ;;
  87.                 '72')
  88.                 extFile='/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/memcached.so'
  89.                 ;;
  90.         esac

  91.         if [ ! -f "${extFile}" ];then
  92.                 cd $srcPath
  93.                 if [ "${version}" == "70" ]  || [ "${version}" == '71' ] || [ "${version}" == '72' ];then
  94.                         wget $download_Url/src/memcached-${memcachedPhpVer}.tgz -T 5
  95.                         tar -xvf memcached-${memcachedPhpVer}.tgz
  96.                         cd memcached-${memcachedPhpVer}
  97.                        
  98.                         /www/server/php/$version/bin/phpize
  99.                         ./configure --with-php-config=/www/server/php/$version/bin/php-config --enable-memcached --with-libmemcached-dir=/usr/local/libmemcached --enable-memcached-sasl
  100.                         make && make install
  101.                         cd $srcPath
  102.                         rm -f memcached-3.0.4.tgz
  103.                         rm -rf memcached-3.0.4
  104.                 else
  105.                         wget $download_Url/src/memcached-2.2.0.tgz -T 5
  106.                         tar -zxf memcached-2.2.0.tgz
  107.                         cd memcached-2.2.0
  108.                         /www/server/php/$version/bin/phpize
  109.                         ./configure --with-php-config=/www/server/php/$version/bin/php-config --enable-memcached --with-libmemcached-dir=/usr/local/libmemcached --enable-memcached-sasl
  110.                         make && make install
  111.                         cd $srcPath
  112.                         rm -rf memcached*
  113.                 fi
  114.         fi
  115.        
  116.         if [ ! -f "$extFile" ];then
  117.                 echo 'error';
  118.                 exit 0;
  119.         fi
  120.        
  121.         echo "extension=memcached.so" >> /www/server/php/$version/etc/php.ini
  122.         echo "memcached.use_sasl=1" >> /www/server/php/$version/etc/php.ini
  123.         service php-fpm-$version reload
  124.         echo '==============================================='
  125.         echo 'successful!'

复制代码
使用道具 举报 回复 支持 反对
发表于 2018-10-13 10:09:49 | 显示全部楼层
河妖 发表于 2018-10-13 09:30
进ssh 输入这条命令看看具体报错

是因为您
http://125.88.182.172:5880/install/1/memcached.sh

  1.         yum install cyrus-sasl-plain cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib libevent libevent-devel -y
复制代码

--enable-memcached-sasl和
--enable-sasl 用错了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表