用源碼包安裝好了SAMBA,不知道怎麼啟動
我是一位初學者,用源碼包安裝好了samba,目錄是/usr/local/samba/
不用使用service smb start 來啟動服務,因為我是源碼安裝,這個怎麼啟動呢,如果我想用service啟動的話,應該怎麼辦?是不是要rpm包安裝
先謝謝各位了
《解決方案》
回復 #1 ddos 的帖子
/usr/local/samba/sbin/smbd -D
就可以了
《解決方案》
我這樣運行了,顯示以下進程,為什麼還是沒有顯示呢UID PID PPID C STIME TTY TIME CMD
root 1 0 0 17:44 ? 00:00:00 init
root 2 1 0 17:44 ? 00:00:00
root 3 1 0 17:44 ? 00:00:00
root 4 3 0 17:44 ? 00:00:00
root 5 3 0 17:44 ? 00:00:00
root 18 3 0 17:44 ? 00:00:00
root 19 1 0 17:44 ? 00:00:00
root 30 3 0 17:44 ? 00:00:00
root 31 3 0 17:44 ? 00:00:00
root 33 3 0 17:44 ? 00:00:00
root 32 1 0 17:44 ? 00:00:00
root 106 1 0 17:44 ? 00:00:00
root 184 1 0 17:44 ? 00:00:00
root 191 1 0 17:44 ? 00:00:00
root 1019 1 0 17:45 ? 00:00:00 udevd
root 1168 1 0 17:45 ? 00:00:00
root 1226 3 0 17:45 ? 00:00:00
root 1259 3 0 17:45 ? 00:00:00
root 1260 3 0 17:45 ? 00:00:00
root 1284 1 0 17:45 ? 00:00:00
root 1875 1 0 17:45 ? 00:00:00 syslogd -m 0 -r
root 1879 1 0 17:45 ? 00:00:00 klogd -x
rpc 1906 1 0 17:45 ? 00:00:00 portmap
rpcuser 1925 1 0 17:45 ? 00:00:00 rpc.statd
root 1952 1 0 17:45 ? 00:00:00 rpc.idmapd
root 2026 1 0 17:45 ? 00:00:00 /usr/sbin/acpid
root 2035 1 0 17:45 ? 00:00:00 cupsd
root 2075 1 0 17:45 ? 00:00:00 /usr/sbin/sshd
root 2111 1 0 17:45 ? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 2130 1 0 17:45 ? 00:00:00 sendmail: accepting connections
smmsp 2138 1 0 17:45 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 2148 1 0 17:45 ? 00:00:00 gpm -m /dev/input/mice -t imps2
htt 2178 1 0 17:45 ? 00:00:00 /usr/sbin/htt -retryonerror 0
htt 2179 2178 0 17:45 ? 00:00:00 htt_server -nodaemon
root 2188 1 0 17:45 ? 00:00:00 crond
xfs 2210 1 0 17:45 ? 00:00:00 xfs -droppriv -daemon
root 2219 1 0 17:45 ? 00:00:00 anacron -s
root 2227 1 0 17:45 ? 00:00:00 /usr/sbin/atd
dbus 2236 1 0 17:45 ? 00:00:00 dbus-daemon-1 --system
root 2247 1 0 17:45 ? 00:00:00 hald
root 2254 1 0 17:45 tty1 00:00:00 /sbin/mingetty tty1
root 2255 1 0 17:45 tty2 00:00:00 /sbin/mingetty tty2
root 2256 1 0 17:45 tty3 00:00:00 /sbin/mingetty tty3
root 2257 1 0 17:45 tty4 00:00:00 /sbin/mingetty tty4
root 2258 1 0 17:45 tty5 00:00:00 /sbin/mingetty tty5
root 2259 1 0 17:45 tty6 00:00:00 /sbin/mingetty tty6
root 2639 2075 0 17:46 ? 00:00:00 sshd: root@pts/0
root 2641 2639 0 17:46 pts/0 00:00:00 -bash
root 2676 2641 0 17:47 pts/0 00:00:00 ps -ef
《解決方案》
# /usr/local/samba/bin/nmbd --help
/usr/local/samba/bin/nmbd: invalid option -- -
Usage: /usr/local/samba/bin/nmbd [-DaiohV] [-H lmhosts file] [-d debuglevel] [-l log basename]
[-n name] [-p port] [-s configuration file]
-D Become a daemon (default)
-a Append to log file (default)
-i Run interactive (not a daemon)
-o Overwrite log file, don't append
-h Print usage
-V Print version
-H hosts file Load a netbios hosts file
-d debuglevel Set the debuglevel
-l log basename. Basename for log/debug files
-n netbiosname. Primary netbios name
-p port Listen on the specified port
-s configuration file Configuration file name
# /usr/local/samba/bin/smbd --help
/usr/local/samba/bin/smbd: invalid option -- -
Usage: /usr/local/samba/bin/smbd [-DaioPh?V] [-d debuglevel] [-l log basename] [-p port]
[-O socket options] [-s services file]
-D Become a daemon (default)
-a Append to log file (default)
-i Run interactive (not a daemon)
-o Overwrite log file, don't append
-h Print usage
-? Print usage
-V Print version
-d debuglevel Set the debuglevel
-l log basename. Basename for log/debug files
-p port Listen on the specified port
-O socket options Socket options
-s services file. Filename of services file
誰能翻譯一下這幾個選項什麼意思