LinuxÖÐtty pty pts ¸ÅÄîÇø±ð
±¾ÎÄÕª×Ô http://hi.baidu.com/yuhongchun027/blog/item/2ac559517ec1f5898c543002.html
LinuxÖÐtty pty pts ¸ÅÄîÇø±ð
»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òÕßteletypewriters£¬ÔÀ´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅÌÓëÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ËÉ豸¡£
2> pty£¨ÐéÄâÖÕ¶Ë):
µ«ÊÇÈç¹ûÎÒÃÇÔ¶³Ìtelnetµ½Ö÷»ú»òʹÓÃxtermʱ²»Ò²ÐèÒªÒ»¸öÖն˽»»¥Ã´£¿Êǵģ¬Õâ¾ÍÊÇÐéÄâÖÕ¶Ëpty(pseudo-tty)
3> pts/ptmx(pts/ptmx½áºÏʹÓ㬽ø¶øʵÏÖpty):
pts(pseudo-terminal slave)ÊÇptyµÄʵÏÖ·½·¨£¬Óëptmx(pseudo-terminal master)ÅäºÏʹÓÃʵÏÖpty¡£
LinuxÖնˣº
ÔÚLinuxϵͳµÄÉ豸ÌØÊâÎļþĿ¼/dev/Ï£¬ÖÕ¶ËÌØÊâÉ豸ÎļþÒ»°ãÓÐÒÔϼ¸ÖÖ£º
1¡¢´®Ðж˿ÚÖÕ¶Ë(/dev/ttySn)
´®Ðж˿ÚÖÕ¶Ë(Serial Port Terminal)ÊÇʹÓüÆËã»ú´®Ðж˿ÚÁ¬½ÓµÄÖÕ¶ËÉ豸¡£¼ÆËã»ú°Ñÿ¸ö´®Ðж˿ڶ¼¿´×÷ÊÇÒ»¸ö×Ö·ûÉ豸¡£ÓжÎʱ¼äÕâЩ´®Ðж˿ÚÉ豸ͨ³£±»³ÆΪÖÕ¶ËÉ豸£¬ÒòΪÄÇʱËüµÄ×î´óÓÃ;¾ÍÊÇÓÃÀ´Á¬½ÓÖնˡ£ÕâЩ´®Ðж˿ÚËù¶ÔÓ¦µÄÉ豸Ãû³ÆÊÇ/dev/tts/0(»ò/dev/ttyS0), /dev/tts/1(»ò/dev/ttyS1)µÈ£¬É豸ºÅ·Ö±ðÊÇ(4,0), (4,1)µÈ£¬·Ö±ð¶ÔÓ¦ÓÚDOSϵͳϵÄCOM1¡¢COM2µÈ¡£ÈôÒªÏòÒ»¸ö¶Ë¿Ú·¢ËÍÊý¾Ý£¬¿ÉÒÔÔÚÃüÁîÐÐÉϰѱê×¼Êä³öÖض¨Ïòµ½ÕâЩÌØÊâÎļþÃûÉϼ´¿É¡£ÀýÈ磬ÔÚÃüÁîÐÐÌáʾ·ûϼüÈ룺echo test > /dev/ttyS1»á°Ñµ¥´Ê”test”·¢Ë͵½Á¬½ÓÔÚttyS1(COM2)¶Ë¿ÚµÄÉ豸ÉÏ¡£¿É½Ó´®¿ÚÀ´ÊµÑé¡£
2¡¢Î±ÖÕ¶Ë(/dev/pty/)
αÖÕ¶Ë(Pseudo Terminal)ÊdzɶԵÄÂß¼ÖÕ¶ËÉ豸(¼´masterºÍslaveÉ豸, ¶ÔmasterµÄ²Ù×÷»á·´Ó³µ½slaveÉÏ)¡£
ÀýÈç/dev/ptyp3ºÍ/dev/ttyp3(»òÕßÔÚÉ豸ÎļþϵͳÖзֱðÊÇ/dev/pty/m3ºÍ /dev/pty/s3)¡£ËüÃÇÓëʵ¼ÊÎïÀíÉ豸²¢²»Ö±½ÓÏà¹Ø¡£Èç¹ûÒ»¸ö³ÌÐò°Ñptyp3(masterÉ豸)¿´×÷ÊÇÒ»¸ö´®Ðж˿ÚÉ豸£¬ÔòËü¶Ô¸Ã¶Ë¿ÚµÄ¶Á/ д²Ù×÷»á·´Ó³ÔÚ¸ÃÂß¼ÖÕ¶ËÉ豸¶ÔÓ¦µÄÁíÒ»¸öttyp3(slaveÉ豸)ÉÏÃæ¡£¶øttyp3ÔòÊÇÁíÒ»¸ö³ÌÐòÓÃÓÚ¶Áд²Ù×÷µÄÂß¼É豸¡£
ÕâÑù£¬Á½¸ö³ÌÐò¾Í¿ÉÒÔͨ¹ýÕâÖÖÂß¼É豸½øÐл¥ÏཻÁ÷£¬¶øÆäÖÐÒ»¸öʹÓÃttyp3µÄ³ÌÐòÔòÈÏΪ×Ô¼ºÕýÔÚÓëÒ»¸ö´®Ðж˿ڽøÐÐͨÐÅ¡£ÕâºÜÏóÊÇÂß¼É豸¶ÔÖ®¼äµÄ¹ÜµÀ²Ù×÷¡£¶ÔÓÚttyp3(s3)£¬ÈκÎÉè¼Æ³ÉʹÓÃÒ»¸ö´®Ðж˿ÚÉ豸µÄ³ÌÐò¶¼¿ÉÒÔʹÓøÃÂß¼É豸¡£µ«¶ÔÓÚʹÓÃptyp3µÄ³ÌÐò£¬ÔòÐèҪרÃÅ
Ïà¹ØÎĵµ£º
×¼±¸¹¤×÷:
¡¡¡¡Óõ½µÄperl À©Õ¹×é¼þ(modules)ÔÚÉÏƪÌù³ö.( win32::odbc Ä£¿é
)ÏÂÔØ×é¼þºó°´ÕÕReadmeÎļþ°²×°µ¹ÏìӦĿ¼.ÅäÖúÃÏàÓ¦µÄodbcÊý¾ÝÔ´.
¡¡¡¡
¡¡¡¡³ÌÐòʵÏÖ:
¡¡¡¡Ê¹ÓÃ
¡¡¡¡use
Win32::ODBC;
¡¡¡¡
¡¡¡¡Óï¾ä°üº¬Ó¦Ê¹ÓõÄÄ£¿éÊÇwin32::odbc,д³öÊý¾Ý¿â
Á¬½Ó×Ö·û´®
¡¡¡¡
¡¡¡¡$DSN = "DSN =
My DSN ......
£¨ÉùÃ÷£ºÕâÊÇתÔØ×Ôhttp://www.chinaunix.net/jh/21/1079.html)
´ÓSybaseµÄÕ¾µãÉÏÏÂÔØÁ½¸öÈí¼þ°ü£¬±ÊÕßÏÂÔØÁË11.0.3.3°æ±¾£¬SybaseÄ¿Ç°ÒѾÍƳöÁËASE11.9.2£¬ÓÉ
ÓÚ11.9.2Èí¼þ°üºÜ´ó£¬ÓÉ6¸örpmÈí¼þ°ü×é³É£¬¸÷λ¿ÉÒÔÈ¥ÆäÕ¾µãÏÂÔØ¡£¶ÔÓÚSybase¡¡11.0.3£¬sybaseÌṩÁË
Á½¸örpm¸ñʽµÄÈí¼þ°ü¡£
£¨ÕâÁ½¸öÎļþ¿ÉÒÔ¿´ÎÒ²©¿ ......
add user£º
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test
add user to a group:
e.g. add nexus to admin
useradd -g admin nexus
default role£º
[root@localhost ~]# useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
de ......
linux Ï ÓÃcÓïÑÔ´´½¨mysqlÊý¾Ý¿â±Ê¼Ç£¨Ò»£©
£££££½öΪ¸öÈËѧϰժҪ£¬²¢²»¶Ï¸üÐÂÖС£¡£¡£¡£
ÔÚÒýÓÃÍ·Îļþʱ±ØÐë°üº¬‘mysql.h’µÄÍ·Îļþ(±ØÐëÊÇmysql.hµÄ¾ø¶ÔµØÖ·£¬Ò»°ãÔÚmysqlϵÄincludeĿ¼Ï£¬×Ðϸ¿´¿´ÄãµÄÔÚÄÄÀ*),
ÎÒÊÇubuntu9¡£04£¬ÔÚ/usr/include/mysql/mysql ......