- page analysis tool
- tutorial
http://www.sitepoint.com/article/web-site-optimization-steps/
http://developer.yahoo.com/performance/rules.html
- SEO
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
<virtualhost>
ServerName xxxx
ServerAlias xxxx.com
DocumentRoot /home/www/xxxx.com/web
AddType application/x-httpd-php .php
<directory>
AllowOverride All
Order allow,deny
Allow from all
</directory>
RewriteLog /home/www/xxxx.com/log/xxxx.com_rewrite_log
RewriteLogLevel 3
ErrorLog /home/www/xxxx.com/log/xxxx.com_error_log
CustomLog /home/www/xxxx.com/log/xxxx.com_access_log common
</virtualhost>
Reference#include
/* Defines the license for this LKM */
MODULE_LICENSE("GPL");
/* Init function called on module entry */
int my_module_init( void )
{
printk(KERN_INFO "my_module_init called. Module is now loaded.\n");
return 0;
}
/* Cleanup function called on module exit */
void my_module_cleanup( void )
{
printk(KERN_INFO "my_module_cleanup called. Module is now unloaded.\n");
return;
}
/* Declare entry and exit functions */
module_init( my_module_init );
module_exit( my_module_cleanup );
make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modules
4. insert module
insmod simple-lkm.ko
5. check module
lsmod
6. check print message
dmesg | tail -5
7. remove module
rmmod simple-lkm