1. 程式人生 > >9、Linux基礎(五)

9、Linux基礎(五)

查看 reload print install 1-1 str -s firewalld samb

Samba服務

1 準備環境
=====>part1:
iptables -F
#systemctl disable firewalld #開機默認關閉
#systemctl stop firewalld #立即關閉
#systemctl status firewalld

setenforce 0
#/etc/sysconfig/selinux
#SELINUX=disabled
=====>part2:
配置ip

2 安裝軟件包
yum install samba -y
3 修改配置文件
/etc/samba/smb.conf
[public]
comment = Public Stuff


path = /share
public = yes
writable = no
printable = no
write list = alex,lili


4 啟動服務
systemctl restart smb

5 測試
映射網絡驅動
\\服務端的ip\用戶名 --------》登錄到用戶的家目錄下
\\服務端的ip\public --------》登錄到共享目錄


補充
net use #查看
net use * /del #清除

6. 掌握windows客戶端的訪問方式

技術分享

7.掌握Linux客戶端的訪問方式

技術分享

技術分享

nginx服務

1 準備環境
=====>part1:
iptables -F
#systemctl disable firewalld #開機默認關閉
#systemctl stop firewalld #立即關閉
#systemctl status firewalld

setenforce 0
#/etc/sysconfig/selinux
#SELINUX=disabled
=====>part2:
配置ip

2 安裝軟件包
二進制方式安裝
yum install epel-release -y
yum install nginx -y
源碼安裝
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 啟動服務
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
#/usr/local/nginx/sbin/nginx -s stop 關閉
#/usr/local/nginx/sbin/nginx -s reload 重新加載配置文件

9、Linux基礎(五)