Linux basic four----Sanba&&nginx

Source: Internet
Author: User

A Samba

1 Environment configuration:

A. Ensure that the Linux firewall shuts down than or open shared directory permissions iptables-f

B. Ensure setlinux shutdown:setenforce 0

C. Configure IP

2 installation package: Yum Install samba-y

3 Modifying the configuration file:

Path:/etc/samba/smb.conf

4 Starting the Service
Systemctl Restart SMB

5 Testing
Map Network drivers
\ \ server ip\ user name--------"login to the user's home directory

\ \ ip\public--------on server login to the shared directory

Step1 Mkdir/share

Hung a spare hard drive to/share.

Step2 vim/etc/samba/smb.conf

[Public]
Comment = Public Stuff
Path =/share
Public = yes
writable = no
printable = no
Write list = Alex,lili

Step 3 systemctl Restart SMB

Step 4 Modify User rights

chmod 775/share (can only browse content, cannot be deleted)

STEP5 Test:

Two Nginx

1 Preparation environment
=====>part1:
Iptables-f
#systemctl Disable FIREWALLD #开机默认关闭
#systemctl Stop Firewalld #立即关闭
#systemctl Status Firewalld

Setenforce 0
#/etc/sysconfig/selinux
#SELINUX =disabled
=====>part2:

Configure IP

2. Installing Ngnix

A. Binary installation:

Yum Install Epel-release-y
Yum Install Nginx-y

B. Source code Installation:

3. Modify the configuration file: Static file forwarding, reverse proxy and load balancing configuration via Nginx

4. 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

Linux basic four----Sanba&&nginx

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.