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