搞定了 是启动机制的问题 要这样启动
[root @localhost ~]# systemctl start smb.service
回车后没有任何反应
查看是否启动
[root@localhost ~]# service smb status
Redirecting to /bin/systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled)
Active: active (running) since 二 2014-12-23 19:25:57 CST; 2h 53min ago
Main PID: 15652 (smbd)
Status: "smbd: ready to serve connections..."
CGroup: /system.slice/smb.service
├—15652 /usr/sbin/smbd
└—15653 /usr/sbin/smbd
12月 23 19:25:57 localhost.localdomain systemd[1]: Starting Samba SMB Daemon...
12月 23 19:25:57 localhost.localdomain smbd[15651]: [2014/12/23 19:25:57.623...
12月 23 19:25:57 localhost.localdomain systemd[1]: smb.service: Supervising ...
12月 23 19:25:57 localhost.localdomain smbd[15652]: [2014/12/23 19:25:57.683...
12月 23 19:25:57 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
12月 23 22:14:32 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
(最后一句话的意思是:启动Samba的SMB进程。)
相同问题的同鞋注意了 Cent OS 7的启动机制好像有些改变
查资料发现了systemctl
[root @localhost ~]# systemctl start smb.service
回车后没有任何反应
查看是否启动
[root@localhost ~]# service smb status
Redirecting to /bin/systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled)
Active: active (running) since 二 2014-12-23 19:25:57 CST; 2h 53min ago
Main PID: 15652 (smbd)
Status: "smbd: ready to serve connections..."
CGroup: /system.slice/smb.service
├—15652 /usr/sbin/smbd
└—15653 /usr/sbin/smbd
12月 23 19:25:57 localhost.localdomain systemd[1]: Starting Samba SMB Daemon...
12月 23 19:25:57 localhost.localdomain smbd[15651]: [2014/12/23 19:25:57.623...
12月 23 19:25:57 localhost.localdomain systemd[1]: smb.service: Supervising ...
12月 23 19:25:57 localhost.localdomain smbd[15652]: [2014/12/23 19:25:57.683...
12月 23 19:25:57 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
12月 23 22:14:32 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
(最后一句话的意思是:启动Samba的SMB进程。)
![](http://tb2.bdstatic.com/tb/editor/images/face/i_f08.png?t=20140803)
查资料发现了systemctl