Start and stop of samba

Source: Internet
Author: User

After the Samba server configuration is complete, the Samba dual virtual host service can be started. Script file SMB in the//ETC/INIT.D directory controls the Samba service, with parameter start, stop and restart control the start, stop, and restart of the samba service.

1. Start Samba Service

To start the Samba service, simply enter the "/etc/rc.d/init.d/smb start" command in the terminal, and press ENTER.

In addition, the user can start the Samba service by entering the service SMB Start command and pressing ENTER.

2. Restart Samba Service

In Linux system services, when a user changes a profile, be sure to restart the service to have the service reload the configuration file for the configuration to take effect. If you are restarting the Samba service, you can restart the Samba service by using the "/etc/rc.d/init.d/smbrestart" command or the service SMB restart command.

3. Automatically load Samba service

In practical applications, it is tedious work to enable the Samba service frequently. Therefore, the user can set it to load automatically as the system boots. To do so, the user can enter the SMB service in the terminal by using the arrow keys, preceded by "*" and press ENTER. NTSYSV the command, and press ENTER. In the Open Interface, number (press SPACEBAR). Then, click the OK button.

When users do not want to turn on samba sharing, they can use the/ETC/RC.D/INIT.D/SMB Stop command to turn off the samba service.

In addition, users can use the service SMB Stop command to turn off the samba service.

When users do not want to turn on samba sharing, they can use the "/etc/rc.d/init.d/smb stop" command to turn off the samba month and service.

In addition, users can also use the service SMB Stop command to turn off the samba service

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.