Linux Operating System Basics (vi)

Source: Internet
Author: User

The building of Linux service Chapter 1.samba service

Samba Features: Samba is a Web server for sharing files between Linux and Windows.
2. Start, stop, restart of samba services
Service SMB Start|stop|restart
3. Samba's main configuration file is:/etc/samba/smb.conf
4. Configure Samba Services

5. Create a user and create it as a samba user

Useradd Smbin

Smbpasswd-a Smbin

6. Restart the service to make the configuration effective

Systemctl Restart SMB

7. The meaning of the configuration file

Comment = ... Set up shared annotation
Path = Set the physical path of the shared directory
Valid users = @ Group name, user name setting allows which legitimate groups or users to access
Public = Yes|no Set whether the shared resource can be accessed by the visitor account
browseable = Yes|no Set the share as a hidden share
writable = Yes|no Set whether the client is allowed to write data
Hosts allow = sets a legitimate segment or IP that allows access to the share
There are two types of samba security certifications: Share (anonymous access) User: username password.

2.nginx Service building and load balancing

1) Installation

Tar xvf nginx-1.12.0.tar.gz
CD nginx-1.12.0

./configure--prefix=/usr/local/nginx--without-http_rewrite_module

Make && make install

2) by modifying the nginx.conf configuration file

3) Start the service

/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
#/usr/local/nginx/sbin/nginx-s Stop shutdown
#/usr/local/nginx/sbin/nginx-s Reload Reload configuration file

4) using Nginx to achieve load balancing

The principle of implementation consists of four machines

A lb machine (acting) three real web server

LB configuration file contents

This configuration for its own Nginx service lost the functionality of the web but when the client through the HTTP machine access to this machine, from this machine to forward the request to the real Web server, by polling, weight, IP hash of the way to achieve load balancing

Linux Operating System Basics (vi)

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.