全部博文(339)
分类:
2011-06-09 20:18:53
检查 samba 服务。
bash-3.00# svcs -v | grep samba
legacy_run - 11:07:04 75 lrc:/etc/rc3_d/S90samba
bash-3.00# ps -eaf | grep mbd
root 731 1 0 15:50:31 ? 0:00 /usr/sfw/sbin/smbd -D
root 733 1 0 15:50:31 ? 0:02 /usr/sfw/sbin/nmbd –D
启动samba服务
root@suzwktst02 # ps -eaf | grep mbd
root 14284 14281 0 20:17:52 pts/1 0:00 grep mbd
root 2598 2596 0 May 13 ? 0:00 /usr/sbin/smbd -D
root 2596 1 0 May 13 ? 0:00 /usr/sbin/smbd -D
root@suzwktst02 # svcs -v | grep samba
online - May_13 130 svc:/network/samba:default
root@suzwktst02 # svcadm disable samba
root@suzwktst02 # ps -eaf | grep mbd
root@suzwktst02 # svcs | grep samba
root@suzwktst02 # ps -eaf | grep mbd
root 14284 14281 0 20:17:52 pts/1 0:00 grep mbd
root 2598 2596 0 May 13 ? 0:00 /usr/sbin/smbd -D
root 2596 1 0 May 13 ? 0:00 /usr/sbin/smbd -D
root@suzwktst02 # svcs -v |grep samba
online - May_13 130 svc:/network/samba:default
root@suzwktst02 # svcadm disable samba
root@suzwktst02 # ps -eaf | grep mbd
root@suzwktst02 # svcs | grep samba
root@suzwktst02 # /etc/init.d/samba start
bash: /etc/init.d/samba: No such file or directory
root@suzwktst02 # cd /etc/init.d
root@suzwktst02 # ps -eaf |grep mbd
root@suzwktst02 # svcs | grep samba
root@suzwktst02 # svcadm enable samba
root@suzwktst02 # svcs |grep samba
online 20:22:54 svc:/network/samba:default
root@suzwktst02 # ps -eaf |grep mbd
root 14309 14308 0 20:22:55 ? 0:00 /usr/sbin/smbd -D
root 14308 1 0 20:22:55 ? 0:00 /usr/sbin/smbd –D