First, start the Bacula Director daemon and Storage daemon
When the above configuration is complete, you can start or close the Bacula. Start or turn off all the services on the Baculaserver, as in the next two ways.
The first approach is as follows:
[Root@baculaserver etc]#/opt/bacula/sbin/bacula
{Start|stop|restart|status}
You can also start or close each service in turn by managing each configuration end separately Bacula:
[root@baculaserver etc]#/opt/bacula/etc/bacula-ctl-dir { Start|stop|restart|status}
[Root@baculaserver etc]#/opt/bacula/etc/bacula-ctl-sd {start|stop| Restart|status}
[Root@baculaserver etc]#/opt/bacula/etc/bacula-ctl-fd {start|stop|restart| Status
Because client FD is configured on another host baculaclient, the file daemon service does not need to be started on baculaserver.
After you start all services for Bacula, observe the boot port condition by using the netstat command:
[Root@localhost etc]# netstat-antl |grep-
tcp 0 0 0.0.0.0:9101 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9103 0.0.0.0:* LISTEN
Of these, 9101 represent director daemon;9102 on behalf of file daemon;9103 storage daemon.
Note that you must start the MySQL database before starting all services for Bacula, and if the MySQL database is not started, you will be able to make an error when connecting to the Bacula's control side:
[Root@baculaserver opt]#/opt/bacula/sbin/bconsole
connecting to Director 192.168.12.188:9101
1 September-April 09:45 Bconsole Jobid 0:fatal error:bsock.c:135 Unable to connect to Director on daemon. Err= Deny connection
At this point, the Execute netstat command reveals that port 9101 is not booting at all.
Second, at the client fd start file daemon
Finally, the file Daemon service is started on the client FD (that is, baculaclient), as follows:
[Root@baculaclient etc]#/opt/bacula/sbin/bacula start
starting the Bacula File daemon
Services that manage client FD can also be completed in the following ways:
[Root@baculaclient etc]#/opt/bacula/sbin/bacula {start|stop|restart|status}
[root@ baculaclient etc]# /BACULA/ETC/BACULA-CTL-FD {Start|stop|restart|status}
This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/828996
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/