linuxÄÚºËϵãÁÁled(δʹÓÃÖжϰ汾)
Í·Îļþ£º
#ifndef _LED_CONFIG_H
#define _LED_CONFIG_H
#define LED_CON 0
#define LED_ON 1
#define LED_OFF 2
#endif
ÄÚºËÏÂÃæµÄÇý¶¯Ä£¿é£º
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include "../led_config.h"
#include <linux/errno.h>
#define PHYS_BASE 0x56000040
#define SIZE 12
#define setbit(data,pos,len,val) do{\
data &=~((~(~0<<len))<<pos);\
data |=val<<pos;\
}while(0)
struct led_driver{
unsigned long gpecon;
unsigned long gpedat;
unsigned long gpeup;
unsigned long virt_base;
struct cdev led_dev;
unsigned long major;
unsigned long minor;
dev_t devno;
void (*conf)(struct led_driver *);
void (*on)(struct led_driver *);
void (*off)(struct led_driver *);
};
struct led_driver *md;
void con_led(struct led_driver *led)
{
unsigned long tmp;
Ïà¹ØÎĵµ£º
linuxÍøÂçÁ¬½ÓÅäÖÃͨ¹ýÃüÁîifconfigÀ´Íê³É£¬Ò²¾ÍÊÇinterface configuration¡£
£¡£¡ÓÑÇéÌáÐÑ£ºÏÂÃæÓõÄÃüÁîÓÐЩÐèÒªrootȨÏÞ
²é¿´ÍøÂçÁ¬½Ó
ifconfig
eth0 Link encap:ÒÔÌ«Íø Ó²¼þµØÖ· 00:e0:61:02:af:ba
&n ......
Linux + Apache2.0 + Mysql + PHP + phpBB3.0
1.°²°ü£º
Apache2.0
#tar -zxf httpd-***.tar.gz -C /usr/local/src/
#cd /usr/local/src/httpd-***
  ......
Written by shine
on 2009, April 23, 12:29 PM. Linux
WebminÊÇĿǰ¹¦ÄÜ×îÇ¿´óµÄ»ùÓÚWebµÄUnixϵͳ¹ÜÀí¹¤¾ß¡£¹ÜÀíԱͨ¹ýä¯ÀÀÆ÷·ÃÎÊWebminµÄ¸÷ÖÖ¹ÜÀí¹¦Äܲ¢Íê³ÉÏàÓ¦µÄ¹ÜÀí¶¯×÷¡£Ä¿Ç° WebminÖ§³Ö¾ø´ó¶àÊýµÄUnixϵͳ£¬ÕâЩϵͳ³ýÁ˸÷ÖÖ°æ±¾µÄlinux
ÒÔΪ»¹°üÀ¨£ºAIX¡¢HPUX¡¢Solaris¡¢Unixware¡¢Irix ºÍFreeBSDµÈ¡£
Webmin ......
×î½üÔÚLinux×°oracle ÔÚÍøÉÏËÑÁ˵ã×ÊÁϺʹó¼Ò·ÖÏí
linuxÏÂÃüÁîºÍÎļþ¼°Ä¿Â¼Ãû¶¼·Ö´óСд
//²é¿´ÀúÊ·Êý¾Ý
history
history |grep mount
°´"ÉÏϼü"Ñ¡ÒÔǰÇùýµÄÃüÁî
//¿½±´Îļþ
cp /usr/local/tomcat4/temp/func.class /usr/local/tomcat4/webapps/photoblog/WEB-INF/classes/framework/utils/
cp -Rf /photodataold ......
http://www.enet.com.cn/article/2007/1224/A20071224966521.shtml
Èç¹ûÄã¶ÔSUID¡¢SGIDÈÔÓÐÃÔ»ó¿ÉÒԺúòο¼Ò»Ï£¡
¡¡¡¡Copyright by kevintz.
¡¡¡¡ÓÉÓÚÓû§ÔÚUNIXϾ³£»áÓöµ½SUID¡¢SGIDµÄ¸ÅÄ¶øÇÒSUIDºÍSGIDÉæ¼°µ½ÏµÍ³°²È«£¬ËùÒÔÓû§Ò²±È½Ï¹ØÐÄÕâ¸öÎÊÌâ¡£¹ØÓÚ
SUID¡¢SGIDµÄÎÊÌâÒ²¾³£ÓÐÈËÌáÎÊ£¬µ«»Ø´ðµÄÈËÒ»°ã´ðµÃ² ......