memcache can't run as root without the -u switch
2014-02-27 23:25
176 查看
memcached是一款高速、分布式的内存缓存系统。其官方主页在http://www.danga.com/memcached/
1。安装前的准备
要安装memcached,需要有libevent的支持。
centos通过
yum install libevent-devel
安装即可
其它版本可通过安装libevent的源文件获得
2。下载安装 目前最新版本为 memcached-1.2.6.tar.gz
cd /usr/src
wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz tar xzf memcached-1.2.6.tar.gz
cd memcached-1.2.6
./configure --prefix=/usr/local/memcached
make
make install
3。启动
/usr/local/memcached/bin/memcached -d -m 512 -l 127.0.0.1 -p 10000 -u root
表示已守护进程的方式启动,监听于 127.0.0.1 的10000端口,使用root用户,最大使用512M内存
可以同时开多个memcached,但要监听在不同的端口.
说明:如果没有带 -u root 的话就会报:
can't run as root without the -u switch
解决:带-u root就行!
1。安装前的准备
要安装memcached,需要有libevent的支持。
centos通过
yum install libevent-devel
安装即可
其它版本可通过安装libevent的源文件获得
2。下载安装 目前最新版本为 memcached-1.2.6.tar.gz
cd /usr/src
wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz tar xzf memcached-1.2.6.tar.gz
cd memcached-1.2.6
./configure --prefix=/usr/local/memcached
make
make install
3。启动
/usr/local/memcached/bin/memcached -d -m 512 -l 127.0.0.1 -p 10000 -u root
表示已守护进程的方式启动,监听于 127.0.0.1 的10000端口,使用root用户,最大使用512M内存
可以同时开多个memcached,但要监听在不同的端口.
说明:如果没有带 -u root 的话就会报:
can't run as root without the -u switch
解决:带-u root就行!
相关文章推荐
- root用户无法运行tor解决办法(The tor browser bundle should not be run as root )
- Ubuntu中SonarQube6.7 启动报错:can not run elasticsearch as root
- Chromium can not be run as root错误
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- mac 利用svn下载远程代码出现Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
- Google Chrome can not be run as root 解决办法
- [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
- Please read “Security” section of the manual to find out how to run mysqld as root!错误解决(转)
- 开启nexus出现If you insist running as root, then set the environment variable RUN_AS_USER=root
- Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- ubuntu Google Chrome can not be run as root
- BackTrack上运行Chrome出现“Google Chrome can not be run as root”错误
- chromium can not run as root
- How can I always run the command prompt as administrator?
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo
- Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- linux下搭建nexus提示then set the environment variable RUN_AS_USER=root