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