随笔分类 - linux
(linux litle thing)
摘要:#include<linux/init.h>#include<linux/module.h>//MODULE_LICNESE("Dual BSD/GPL");static int hello_init(void){printk(KERN_ALERT " hello fish!\n");return 0;}static void hello_exit(void){printk(KERN_ALERT " bye fish!\n");}module_init(hello_init);module_exit(hello
阅读全文
摘要:linux编译的时候,会出现 3:16: 错误: expected declaration specifiers or ‘...’ before string constant,网上的说是头文件没有安装,我这里删除了MODULE_LICNESE("Dual BSD/GPL");这一句就可以了,具体什么原因不是很清楚,以后如果知道了再继续写
阅读全文
摘要:试一试用vim命令,或者装 sudo apt-get install vim
阅读全文
摘要:http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=373058http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=350772http://forum.ubuntu.org.cn/viewtopic.php?f=170&t=362692留着自己用
阅读全文
摘要:比起windows 平台,linux下的php配置会简单很多1 你必须有一个linux系统,笔者用的是ubuntu系统2 安装apache sudo apt-get install apache2测试apache是否成功,在浏览器中输入http://loaclhost,会出现itworks,表示成功3 安装phpsudo apt-get install php5 libapache2-mod-php5安装完后,php会自动关联到apache中去,apache默认的网站目录是/var/www目录,这个时候需要改变权限sudo chmod -R 777 /var/www重启apache,会出现一个
阅读全文
摘要:1、题目1取出password中shell出现的次数解析:好,让取出password中shell出现的次数,笔者用的是ubuntu,/etc/passwd就是所谓的password文件,那咱们先看看/etc/passwd中文件的格式吧 1 root:x:0:0:root:/root:/bin/bash 2 daemon:x:1:1:daemon:/usr/sbin:/bin/sh 3 bin:x:2:2:bin:/bin:/bin/sh 4 sys:x:3:3:sys:/dev:/bin/sh 5 sync:x:4:65534:sync:/bin:/bin/sync 6 games:...
阅读全文
摘要:Apche下载地点:http://www.apache/orgOr http://www.51cto.com/html/2005/1021/8911.htmPhp 下载地点:http://www.php.netMysql下载地点:http://www.mysql.com花两天时间,解决了Fatal error: Call to undefined function mysql_connect()这个问题以及Error trying access httpd.conf file.You will need to manually configure the这个问题,详细说说吧!1、(1)出现Fa
阅读全文
摘要:ish.c#include<linux/init.h>#include<linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){printk(KERN_ALERT "hello fish!\n");return 0;}static void hello_exit(void){printk(KERN_ALERT "hello fish exit!\n");}module_init(hello_init);module_ex
阅读全文
摘要:一台机器中同时安装了window 和linux系统,拥有多个系统登录选项,选择默认系统以及开机等待时间:1、window 系统中设定输入C:\boot.ini 进入boot.ini文件,里面会有选项,defaule 以及timeout,defaule是默认系统timeout是等待时间2、linux系统中设定选择root用户,vi /boot/grub/menu.list 文件里面同样有 defaule 以及timeout,自己设定
阅读全文

浙公网安备 33010602011771号