Linux 5.3ÏÂÅäÖÃnis+nfs+autofs
Linux 5.3ÏÂÅäÖÃnis+nfs+autofs
Server(·þÎñ¶Ë):ÏÈ×°ÉÏypserv·þÎñ¶ËÈí¼þ°ü # yum -y install ypserv*
# service ypserv start
# chkconfig ypserv on
# authconfig-tui ͼÐγÌÐòÏÂÅäÖÃnisÓòÃûºÍ·þÎñ¶ËµØÖ·
# service ypserv restart ÅäÖúúó±ØÐëÖØÆô·þÎñ
# service ypbind start ¿ªÆôyp°ó¶¨·þÎñ
# chkconfig ypbind on
# /usr/lib/yp/ypinit -m ³õʼ»¯Êý¾Ý¿â
Ìí¼ÓÁ½¸öÓû§,·Ö±ðÊÇnisuser1ºÍnisuser2
# mkdir /rhome
# chmod 777 /rhome
# useradd -d /rhome/nisuser1 nisuser1
# passwd nisuser1
# useradd -d /rhome/nisuser2 nisuser2
# passwd nisuser2
# /usr/lib/yp/ypinit -m ½«Óû§Êý¾ÝÌí¼Ó½øÈ¥
# ypcat passwd ²é¿´Óû§ÐÅÏ¢
½ÓÏÂÀ´ÅäÖÃnfs·þÎñ:# vim /etc/exportsÌí¼ÓÈçÏÂÄÚÈÝ
/rhome *(sync,rw)
# service nfs start
# chkconfig --level 35 nfs on
Client(¿Í»§¶Ë): # authconfig-tui ͼÐγÌÐòϽøÐÐÅäÖÃ,Ö¸ÏònisÓòÃûµØÖ·ºÍ·þÎñ¶ËµØÖ·
ÉèÖÃ×Ô¶¯¹ÒÔØ: # vim /etc/auto.master Ìí¼ÓÈçÏÂÄÚÈÝ
/rhome /etc/auto.misc --timeout 60s
# vim /etc/auto.misc Ìí¼ÓÈçÏÂÄÚÈÝ
* -fstype=nfs,rw,soft,intr 192.168.1.1:/rhome/&
# service autofs restart ÖØÆôautofs·þÎñ
µ½´Ë½áÊø£¬ÅäÖÃÍê³É£¡£¡£¡
ÆäËü: # service yppasswdd start Æô¶¯yppasswdd·þÎñ
# yppasswd nisuser1 ¸ü¸Änisuser1µÄµÇ¼ÃÜÂë
ÏÈÊärootÓû§µÄÃÜÂ룬ÔÚÊäÐÂÃÜÂë½øÐиü¸Ä
# service yppasswdd restart ÖØÆô·þÎñ
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ÓÐÁ½¶Î´úÂ룺
#!/bin/sh
if [ $#=0 ]
then
echo "Name not provided"
else
echo "You name is $1"
fi
#!/bin/sh
if [ $#=0 ]; then echo "Name not provided"
else echo "You name is $1"
fi
Ãû×ÖΪmypgm1
µÚ ......
ÔÎĵØÖ· http://johnylai.blog.sohu.com/63406924.html
µäÐ͵ÄḬ̈߳üÀ¨Ò»¸öÔËÐÐʱ¼äϵͳ£¬Ëü¿ÉÒÔ°´Í¸Ã÷µÄ·½Ê½À´¹ÜÀíÏ̡߳£Í¨³£Ḭ̈߳ü°üÀ¨¶ÔÏ̵߳Ĵ´½¨ºÍɾ³ý£¬ÒÔ¼°¶Ô»¥³âºÍÌõ¼þ±äÁ¿µÄµ÷Óá£POSIX±ê×¼Ï߳̿â¾ßÓÐÕâЩµ÷Óá£ÕâЩ°ü»¹ÌṩÏ̵߳Ķ¯Ì¬´´½¨ºÍɾ³ý£¬Òò´Ë£¬Ö±µ½ÔËÐÐʱ¼ä֮ǰ£¬Ï̵߳ĸöÊý²»±ØÖªµÀ¡£
  ......
mysql ½Øȡijһ¸öʱ¼ä(datetimeÀàÐÍ)µÄÈÕÆÚ£º
·½·¨1£ºselect date(row_name) from table_name where row = row1;
·½·¨2£ºselect left(row_name, 10) from table_name where row = row1;
·½·¨3£ºselect cast(row_name as char[10]) from table_name where row = row1;
È¡µÃij¸öÈÕÆÚµÄtime_tÊýÖµ£ºselect unix_times ......
Ŀ¼½á¹¹¼°Ö÷ÒªÄÚÈÝ “/”¸ùĿ¼²¿·ÖÓÐÒÔÏÂ×ÓĿ¼£º /usr Ŀ¼°üº¬ËùÓеÄÃüÁî¡¢³ÌÐò¿â¡¢ÎĵµºÍÆäËüÎļþ¡£ÕâЩÎļþÔÚÕý³£²Ù×÷Öв»»á±»¸Ä±äµÄ¡£Õâ¸öĿ¼Ҳ°üº¬ÄãµÄLinux·¢Ðа汾µÄÖ÷ÒªµÄÓ¦ÓóÌÐò£¬Æ©È磬Netscape¡£ /var Ŀ¼°üº¬ÔÚÕý³£²Ù×÷Öб»¸Ä±äµÄÎļþ£º¼ÙÍÑ»úÎļþ¡¢¼Ç¼Îļþ¡¢¼ÓËøÎļþ¡¢ÁÙʱÎļþºÍÒ³¸ñÊ ......