Linux Basic Samba services and Nginx services

Source: Internet
Author: User

I. Samba Services

1. Preparing the Environment : iptables-f: Shutting down the firewall

#systemctl Disable FIREWALLD: Power off by default

#systemctl Stop Firewalld: Close Now

#systemctl Status Firewalld: View

2. installation package : Yum install samba-y

3. Modify the configuration file :

/etc/samba/smb.conf

[Public]

Comment = Public Stuff

Path =/share

Public = yes

writable = no

printable = no

Write list = User1,user2

4. Start service : Systemctl restart SMB

5. Testing

Map Network drivers

\ \ server ip\ user name----------"login to the home directory of Yong-gu

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

Supplemental: Clear Windows Cache: NET use */Del

Two. Nginx Service

1. Preparing the Environment: Iptables-f: Shutting down the firewall

#systemctl Disable FIREWALLD: Power off by default

#systemctl Stop Firewalld: Close Now

#systemctl Status Firewalld: View

2. Install the Package

Binary installation: Install yum install epel-releasr-y before installing yum install nginx-y.

SOURCE Installation:

Yum gcc-* glibc-* make Libtool ncurse-devel pcre-y

Tar xvf nginx.....tar.gz

CD nginx/

./configure--prefix=/usr/local/nginx--with-pcre=/usr/lib64/

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

Make

Make install

3. Modify the configuration file

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 Samba services and Nginx services

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.