linuxÏ´ÅÅ̲Ù×÷ÃüÁî
²é¿´ÏµÍ³µÄ´ÅÅÌÐÅÏ¢£º
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 83 Linux
/dev/hda3 980 1044 522112+ 82 Linux swap
Disk /dev/hdb: 2147 MB, 2147483648 bytes
16 heads, 63 sectors/track, 4161 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 200 100768+ 83 Linux
/dev/hdb2 201 3100 1461600 83 Linux
/dev/hdb3 3101 4161 534744 82 Linux swap
[root@localhost home]#
¡¡
·ÖÇø£º
fdisk
[root@localhost home]# fdisk /dev/hdb
The number of cylinders for this disk is set to 4161.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
¡¡
´´½¨Îļþϵͳ£º
mke2fs
½»»»·ÖÇø¸ñʽ»¯£º
mkswap
[root@localhost home]# mkswap -v /dev/hdb3
mkswap: warning: truncating swap area to 133890kB
Setting up swapspace version 0, size = 133885 kB
ÉèÖñêÇ©:
e2label
Usage: e2label device [newlabel]
²é¿´ÎļþϵͳÐÅÏ¢£º
df
[root@localhost home]# df
Filesystem 1K-¿é ÒÑÓà ¿ÉÓà ÒÑÓÃ% ¹ÒÔصã
/dev/hda2 7637400 5721608 1527824 79% /
/dev/hda1
Ïà¹ØÎĵµ£º
ÔÀ´ÓÉÓÚѧϰ¹¤×÷µÄÐèÒª£¬ÔÚXPÏÂ×°ÁËLINUXϵͳ£¬°²×°XP/LINUX˫ϵͳÂé·³£¬Ã»Ï뵽жÔØÒ²Âé·³¡£¸Õ¿ªÊ¼ÒÔΪ°Ñ×°LINUXϵͳµÄÄǸöÅ̸ñʽ»¯¾ÍOKÁË£¬½á¹ûÖØÆôºóÈÔÈ»³öÏÖÄǸö¿ÉºÞµÄgrubÒýµ¼½çÃæ¡£Ò»Æø֮ϣ¬ÖØ×°CÅÌ£¬grub½çÃæûÁË£¬¿ÉÈ´½ø²»ÁËϵͳ¡£ÍøÉ϶෽²éÕÒ£¬×îºó½â¾ö°ì·¨£ºÏÂÔØmbrfixÎļþµ½uÅÌ£¬ÓÃϵͳÅ̽øÈëµ½WINPE£¬½«mbrfi ......
Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔؼÓÉϲÎÊý: -o iocharset=utf8
È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems ---> DOS/FAT/NT Filesystems --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......
SLES 11
ÉèÖÃmysql·þÎñ×Ô¶¯Æô¶¯×´Ì¬
chkconfig mysql on
(chkconfig mysql off)
Ìí¼Ó/ɾ³ýmysql·þÎñ
/sbin/chkconfig --del mysql
/sbin/chkconfig --add mysql
²é¿´mysql°æ±¾
mysql -V
mysqld -V
ÆôÍ£ mysql
service mysql start
service mysql stop
service mysql restart
......
ÔÚvmÏ°²×°unbuntu linux server 9.04
°²×°Íê³É ²é¿´IPµØÖ· ifconfig
°²×°telnet sudo apt-get install xinetd telnetd
ÒòΪ²»ÐèҪ̫¶àÈËTELNET ÔÝʱ²»×öÐÞ¸ÄÅäÖÃÎļþ¡£
°²×°FTP sudo apt-get install vsftpd
ͬÑù²»ÐèÒªÅäÖà ʹÓÃĬÈϵÄftp:ftpÓû§·ÃÎÊ
mysql
sudo apt-get install mysql-server
apac ......
Ò»¡¢»¨Éú¿ÇFor Linux°²×°²½Öè
¡¡¡¡ÏÂÔØÊʺÏÄúµÄunix/linux°æ±¾µÄ°²×°°üÎļþ,ʹÓÃrootÉí·Ý½âѹËõ°²×°°ü
¡¡¡¡# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz
¡¡¡¡°²×°°üÎļþ½«½âѹËõÖÁphlinux_installĿ¼ÖÐ
¡¡¡¡# cd phlinux_install
¡¡¡¡Ö´Ðа²×°½Å±¾
¡¡¡¡# ./install.sh
¡¡¡¡Ö´Ðа²×°½Å±¾ºó,½«×Ô¶¯ÒÔ»¥¶¯ÅäÖÃÄ ......