Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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°²×°JDKÏêϸ²½Öè2

Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm)
£¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp
jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄ
ȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin ......

linux redhat4+oracle10g

ÔÚÐéÄâ»úRed Hat Enterprise Linux 4 update 4Öа²×°oracle 10.2.0.1
1)²é¿´ÏµÍ³ÄÚ´æ
[root@linux4 ~]# grep MemTotal /proc/meminfo
2)²é¿´½»»»Çø´óС
[root@linux4 ~]# grep SwapTotal /proc/meminfo
3)
²é¿´/tmpĿ¼´óС
[root@linux4 ~]# df -m /tmp
4)²é¿´²Ù×÷ϵͳ°æ±¾
[root@linux4 ~]# cat /etc/issue
5)¼ ......

VPSʹÓÃÊÖ¼Ç Unix/Linux¹ÜÀí¹¤¾ßWebmin

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ϲ¿Êðtomcat£«axis+maven+jdk

ÉÏÎç×öÁËaxisµÄ²¿Ê𣬿´À´·Ö²¼Ê½»¹Õæ²»¼òµ¥£¬µ¥ÊDz¿Êð¾Í¸ãµÄÔÎͷתÏò¡£×îºóµÃµ½µÄ½â¾ö·½°¸¸üÊÇ·ËÒÄËù˼¡£
´ó¼Ò¶¼ÖªµÀÔÚlinuxÉèÖû·¾³±äÁ¿µÄÈýÖÖ·½·¨¡£
ÖµµÃ½¨ÒéµÄÊÇÔÚ .bashrc,ÖÐÐÞÞΣ¬ÒòΪÕâÑù¸ü¼ÓµÄ°²È«£¡
ÆäÖУ¬tomcat£¬maven£¬jdkÔÚÎÒÉèÖõÄʱºò£¬¶¼Êdz£¹æµÄ£¬Î¨Ò»£¬axisµÄ²¿ÊðÓеã¹îÒì¡£²»¹ý»¹Êdzɹ¦ÁË£¡
ÏÖÃæ¾ÍÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ