朋友的FTP启动不了,叫我帮他看,启动时出现以下错误信息:500 OOPS: bad bool
value in config file for:
anonymous_enable看似配置文件错误,看了一下配置相应的行:anonymous_enable=NO语句没什么错误,不过把这行注释后又到下一行...
分类:
其他好文 时间:
2014-05-09 08:51:30
阅读次数:
287
arch/arm/kernel/process.c实现pm_power_off=关机函数参考board-omap3touchbook.c文件中pm_power_off=omap3_touchbook_poweroff;staticvoidomap3_touchbook_poweroff(void)
{
intpwr_off=TB_KILL_POWER_GPIO;
if(gpio_request_one(pwr_off,GPIOF_OUT_INIT_LOW,"DVIreset")<0..
分类:
系统相关 时间:
2014-05-09 07:03:00
阅读次数:
470
网络由下往上分为:7应用层例如HTTP、SMTP、SNMP、FTP、Telnet、SIP、SSH、NFS、RTSP、XMPP、Whois、ENRP6表示层例如XDR、ASN.1、SMB、AFP、NCP5会话层例如ASAP、SSH、ISO
8327 / CCITT X.225、RPC、NetBIOS、...
分类:
其他好文 时间:
2014-05-09 05:23:44
阅读次数:
498
vi/etc/ssh/sshd_config注释掉这行Subsystem sftp
/usr/libexec/openssh/sftp-server/etc/rc.d/init.d/sshd restart
分类:
其他好文 时间:
2014-05-09 04:47:46
阅读次数:
295
http://rubyer.me/blog/1682/遇到的问题:1、reason given by
server: Permission
denied在服务器的/etc/export配置文件中加上”no_root_squas”。因为默认为”root-squas”,即默认客户端的root会被映射成匿...
分类:
系统相关 时间:
2014-05-09 03:12:23
阅读次数:
306
sys.c 代码分析
setregid
/*
* This is done BSD-style, with no consideration of the saved gid, except
* that if you set the effective gid, it sets the saved gid too. This
* makes it possib...
分类:
系统相关 时间:
2014-05-09 02:13:12
阅读次数:
621
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
测试程序:
#include
#include
struct dev
{
int a;
char b;
float c;
};
struct dev devs[]=
{
{
1,'a',7.0,
},
{
1,'a',7.0,
},
{
...
分类:
系统相关 时间:
2014-05-09 02:10:16
阅读次数:
494
vsprintf.c 代码笔记
你
/*
* linux/kernel/vsprintf.c
*
* (C) 1991 Linus Torvalds
*/
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
/*
* Wirzenius wrote this portably, Torvalds fucked...
分类:
系统相关 时间:
2014-05-09 01:38:20
阅读次数:
480
工作需求,需要自己写一个memcached的启动停止脚本,呕心沥血,终于完成,虽然很搓很搓,还是记录一下吧,废话不多说直接上脚本#!/bin/sh
#ckconfig:-5545
#description:Thememcacheddaemonisanetworkmemorycacheservice.
#processname:memcached
#config:/etc/memcached.conf
..
分类:
其他好文 时间:
2014-05-09 00:45:11
阅读次数:
301
在基于主机方式配置Spring的配置文件中,你可能会见到这样一条配置,他的作用是式地向Spring容器注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、PersistenceAnnotationBeanP...
分类:
编程语言 时间:
2014-05-08 23:32:58
阅读次数:
411