[linux]
ÅäÖãº
ͨ¹ýÎļþÃû²éÕÒ·¨£º
Õâ¸ö·½·¨ËµÆðÀ´¾ÍºÍÔÚWINDOWSϲéÕÒÎļþÒ»ÑùÈÝÒ×Àí½âÁË¡£Èç¹ûÄã°ÑÕâ¸öÎļþ·ÅÔÚµ¥¸öµÄÎļþ¼Ð
ÀïÃ棬ֻҪʹÓó£¼ûµÄ“ls"ÃüÁî¾ÍÄÜ·½±ãµÄ²éÕÒ³öÀ´£¬ÄÇôʹÓÓfind”ÃüÁîÀ´²éÕÒËü¾Í²»Äܸø
ÄãÁôÏÂÉî¿ÌµÄÓ¡Ï󣬱Ͼ¹“find”ÃüÁîµÄÇ¿´ó¹¦Äܲ»Ö¹Õâ¸ö¡£Èç¹ûÖªµÀÁËij¸öÎļþµÄÎļþÃû£¬¶ø²»
ÖªµÀÕâ¸öÎļþ·Åµ½ÄĸöÎļþ¼Ð£¬ÉõÖÁÊDzã²ãÌ×ǶµÄÎļþ¼ÐÀï¡£¾ÙÀý˵Ã÷£¬¼ÙÉèÄãÍü¼ÇÁËhttpd.conf
Õâ¸öÎļþÔÚϵͳµÄÄĸöĿ¼Ï£¬ÉõÖÁÔÚϵͳµÄij¸öµØ·½Ò²²»ÖªµÀ£¬ÔòÕâÊÇ¿ÉÒÔʹÓÃÈçÏÂÃüÁ
find / -name httpd.conf
Èç¹û·þÎñûÓÐÔËÐУ¬¿ÉÒÔÓÃ
sudo /etc/init.d/mysql restart¿ªÆô¡£
ÅäÖÃÃÜÂ룺
sudo mysqladmin -u root password newpassword
ÏÖÔÚÐèҪװadministratorÁË£¬Õâ¸ögui¹¤¾ß¿ÉÒÔ¿ÉÊÓ»¯²Ù×÷mysql£¬ËüÔÚunix,windows,mac
os,linuxƽ̨É϶¼ÓÐÏàÓ¦µÄ°æ±¾£¬°²×°£º
sudo apt-get install mysql-admin
°²×°Ö®ºóÐèÒª½¨Á¢Á¬½Ó£¬stored connection:µÚÒ»´ÎʹÓã¬Ê×ÏÈÐèҪѡÔñsave this connection£¬
È»ºóÌîдÁ¬½ÓµÄÃû×Ö£¬ÀýÈç:connection.
server hostname:Èç¹ûÊÇһ̨±¾µØ¼ÆËã»ú£¬Ìîдlocalhost.usernameºÍpasswordÌîд×Ô¼ºÉèÖõľÍ
¿ÉÒÔ¡£×îºóµã"connection"Á¬½Ó³É¹¦£¡
======================================================================================
°²×°MySQL
sudo apt-get install mysql-server
Õâ¸öÓ¦¸ÃºÜ¼òµ¥ÁË£¬¶øÇÒÎÒ¾õµÃ´ó¼ÒÔÚ°²×°·½ÃæҲûʲô̫´óÎÊÌ⣬ËùÒÔÒ²¾Í²»¶à˵ÁË£¬ÏÂÃæÎÒÃÇ
À´½²½²ÅäÖá£
ÅäÖÃMySQL
×¢Ò⣬ÔÚUbuntuÏÂMySQLȱʡÊÇÖ»ÔÊÐí±¾µØ·ÃÎʵģ¬Èç¹ûÄãÒªÆäËû»úÆ÷Ò²Äܹ»·ÃÎʵĻ°£¬ÄÇôÐèÒª
¸Ä±ä/etc/mysql/my.cnfÅäÖÃÎļþÁË£¡ÏÂÃæÎÒÃÇÒ»²½²½µØÀ´£º
ĬÈϵÄMySQL°²×°Ö®ºó¸ùÓû§ÊÇûÓÐÃÜÂëµÄ£¬ËùÒÔÊ×ÏÈÓøùÓû§½øÈ룺
$mysql -u root
ÔÚÕâÀïÖ®ËùÒÔÓÃ-urootÊÇÒòΪÎÒÏÖÔÚÊÇÒ»°ãÓû§£¨firehare£©£¬Èç¹û²»¼Ó-urootµÄ»°£¬mysql»áÒÔ
ΪÊÇfirehareÔڵǼ¡£×¢Ò⣬ÎÒÔÚÕâÀïûÓнøÈë¸ùÓû§Ä£Ê½£¬ÒòΪû±ØÒª¡£Ò»°ãÀ´Ëµ£¬¶ÔmysqlÖÐ
µÄÊý¾Ý¿â½øÐвÙ×÷£¬¸ù±¾Ã»±ØÒª½øÈë¸ùÓû§Ä£Ê½£¬Ö»ÓÐÔÚÉèÖÃʱ²ÅÓÐÕâÖÖ¿ÉÄÜ¡£
½øÈëmysqlÖ®ºó£¬×îÒª½ôµÄ¾ÍÊÇÒªÉèÖÃMysqlÖеÄrootÓû§ÃÜÂëÁË£¬·ñÔò£¬Mysql·þÎñÎÞ°²È«¿ÉÑÔÁË
¡£
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "123456";
×¢Ò⣬ÎÒÕâ¶ùÓõÄÊÇ123456×öΪrootÓû§µÄÃÜÂ룬µ«ÊǸÃ
Ïà¹ØÎĵµ£º
½ñÌìѧϰÁËÔÚlinux2.6ƽ̨Ï嵀 char drvier £¬ÔÚlinuxÏÂÍƼöʹÓõÄÊÇcdev½á¹¹ÌåÀ´ÊµÏÖ¶ÔcharacterÉ豸µÄÃèÊö£¬´úÂëÈçÏÂ
/*This module is desired for sunplusapp s3c2440_board */
#include <linux/fs.h>
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/kernel.h> ......
ÔÚLinuxϵͳÉÏÃüÃûĿ¼µÄ·½Ê½ÊÇÏ൱ÒþÃصģ¬ÕâҪ׷Ëݵ½µçÄÔÓ²¼þ´¦ÀíÄÜÁ¦±È½ÏÈõ¶ø¼Û¸ñÓֱȽϹóµÄʱÆÚ¡£ÔÚLinuxϵͳÉÏÃüÃûĿ¼µÄ·½Ê½ËƺõÓе㱿׾£¬µ«ÓëÆäËûµÄÿ¼þÊÂÇéÒ»Ñù£¬ÕâÖ»Ð軨һЩʱ¼ä¼ÓÒÔÏ°¹ß¡£Í¨¹ýÃèÊöLinuxÎļþϵͳµÄÈ«¾°£¬Ê¹¶ÁÕß¿ÉÒÔ¶ÔLinuxµÄÎļþϵͳÓнÏÇå³þµÄÈÏʶ¡£
¸ùĿ¼(/)
¡¡¡¡Ä¿Â¼½á¹¹ÉϵÄ×î¸ßµã± ......
ÏÖÔÚʹÓÃlinuxµÄÅóÓÑÔ½À´Ô½¶àÁË£¬ÔÚlinuxÏÂ×ö¿ª·¢Ê×ÏȾÍÊÇÐèÒªÅäÖû·¾³±äÁ¿£¬ÏÂÃæÒÔÅäÖÃjava»·¾³±äÁ¿ÎªÀý½éÉÜÈýÖÖÅäÖû·¾³±äÁ¿µÄ·½·¨¡£
1.ÐÞ¸Ä/etc/profileÎļþ
Èç¹ûÄãµÄ¼ÆËã»ú½ö½ö×÷Ϊ¿ª·¢Ê¹ÓÃʱÍƼöʹÓÃÕâÖÖ·½·¨£¬ÒòΪËùÓÐÓû§µÄshell¶¼ÓÐȨʹÓÃÕâЩ»·¾³±äÁ¿£¬¿ÉÄÜ»á¸øϵͳ´øÀ´°²È«ÐÔÎÊÌâ¡£
......
1¡¢ µ±°ÑÏîÄ¿ÅäÉÏÓòÃûʱ£¬±ØÐë°ÑtomcatµÄ¶Ë¿Ú¸ÄΪ80£¬×¢Òâµ±Ìæ»»ÅäÖÃÎļþʱ£¬Òª¼ÇµÃ°Ñtomcat¶Ë¿Ú¸Äһϡ£
2¡¢ CÅÌϵÄhostsÎļþ£¬ÊÇÅäÖÃÓòÃûÓõģ¬µ±²»ÔÚhostsÅäÖÃÓòÃûʱ£¬windowsϵͳ»áµ½ÍâÍøÈ¥ÕÒ·ûºÏµÄÓòÃû£¬µ±ÔÚhostsÏÂÅäÖÃÓòÃûʱ£¬¾Í²»»áµ½ÍâÍøÈ¥ÕÒÁË¡£
3¡¢ Îļþ¸üеÄÕû¸öÁ÷³Ì£º
£¨1£©£ºÓÃÔ¶³ ......
RedHat£¨CentOS5.3£©Æ½Ì¨ÏÂLAMP´î½¨Linux+Apache+Mysql+PHP
Ò»¡¢°²×°»·¾³£º
ϵͳƽ̨£ºCentOS5.3,ÄÚºË2.6.18-128.el5£¬ÎÄ×Ö½çÃ棨δ°²×°Í¼ÐνçÃ棩
¶þ¡¢Èí¼þÐèÇó¼°ÏµصØÖ·£º
httpd-2.2.13.tar.gz
MySQL-client-community-5.1.40-0.rhel5.i386.rpm MySQL-server-community-5.1.40-0.rhel5.i386.rpm   ......