如果没有带 -u root 的话就会报: can't run as root without the -u switch 解决方法: 带-u root就行了. 出现的原因: 1.可能在root用户下启动 2.可能在rc.local下启动,因为rc.local启动时默认是root权限的.而memcached默认不加u参数启动就是当前的用户.…
memcached是一款高速.分布式的内存缓存系统.其官方主页在http://www.danga.com/memcached/1.安装前的准备要安装memcached,需要有libevent的支持.centos通过yum install libevent-devel安装即可其它版本可通过安装libevent的源文件获得 2.下载安装 目前最新版本为 memcached-1.2.6.tar.gzcd /usr/srcwget http://www.danga.com/memcached/dist/…
[root@localhost ~]# /usr/local/memcache/bin/memcached can't run as root without the -u switch [root@localhost ~]# /usr/local/memcache/bin/memcached -uroot…
问题:在开机启动时,提示“unexpected inconsistency;RUN fsck MANUALLY”进不了系统 解决方法: fsck不仅可以对文件系统进行扫描,还能修正文件系统的一些问题,值得注意的是fsck扫描文件系统时一定要在单用户模式.修复模式或把设备umount后进行!!! 首先进行单用户模式或直接在那里输入root密码进入修复模式 再用命令fsck修复所提示出错的分区或磁盘: #fsck.ext4 -y /dev/sda2 ——>出错所在分区或磁盘 注:使用命令#df -T…
CentOS这两天服务器出了问题了,提示如下: unexpected inconsistency;RUN fsck MANUALLY An error occurred during the filesystem check Propping you to shell the system will reboot when you leave the shell Give root password for mantennance 从网上找了一些教程,立马就解决了,过程如下: 按照系统提示,输入…
今天一台虚拟机背后的物理机故障了,主机迁移后变成了 read only filesystem.上面部署了很多长连接服务,没有关掉就直接reboot,报错: unexpected inconsistency  RUN fsck MANUALLY.. 磁盘损坏了... 修复过程: 通过控制台登陆Linux: 在提示Give root password for mantennance后: 输入root密码.登陆到单机安全模式,然后: 1. 输入命令,查找根目录所在分区: mount |grep “on…
CentOS这两天服务器出了问题了,提示如下: unexpected inconsistency;RUN fsck MANUALLY An error occurred during the filesystem check Propping you to shell the system will reboot when you leave the shell Give root password for mantennance 从网上找了一些教程,立马就解决了,过程如下: 按照系统提示,输入…
启动参数注释如下: -p <num>  指定服务TCP端口,默认为11211 -U <num>   指定服务UDP端口  默认11211表示打开,设置0表示关闭 -s <file> 指定unix domain socket的文件名,则关闭端口绑定 -a <mask> 文件属性屏蔽字.8进制,默认0700(和-s配合使用) -l <ip_addr>  指定监听IP地址(默认对所有网卡IP都生效) -d   run as a daemon 以精灵程序…
memcached -m 1024 -u root -p 11211 -c 1024 -P /var/memcached.pid -d memcached 1.2.2 -p <num> TCP port number to listen on (default: 11211) -U <num> UDP port number to listen on (default: 0, off) -s <file> unix socket path to listen on (d…
Ubuntu运行Chrome出现"Google Chrome can not be run as root"的解决方法 编辑启动文件:/opt/google/chrome/google-chrome 修改最后一行:exec -a "$0" "$HERE/chrome" "$@"  to -->exec -a "$0" "$HERE/chrome" "$@" --…