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)