9、Linux基础(五)

Samba与Nginx服务搭建教程

一 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 重新加载配置文件

 

转载于:https://www.cnblogs.com/f1443526266/p/6924546.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值