Linux基础初识(六)

Linux基础初识(六)

一、Samba服务

1. samba的功能: samba是一个网络服务器,用于Linux和Windows之间共享文件。
2. samba服务的启动、停止、重启
service smb start|stop|restart
3. samba的主配置文件为:/etc/samba/smb.conf
4. 配置samba服务

comment = ......   设置共享注译
path =    设置共享目录的物理路径
valid users = @组名,用户名   设置允许哪些合法组或用户访问
public = yes|no  设置共享资源是否能给游客帐号访问
browseable = yes|no  设置该共享为隐藏共享
writable = yes|no 设置是否允许客户端写入数据
hosts allow =  设置允许访问该共享的合法网段或IP
samba安全认证掌握两种:share (匿名访问)user:用户名密码
添加smb用户和设置密码:smbpasswd –a 用户
Useradd u
5. 掌握windows客户端的访问方式

6.掌握Linux客户端的访问方式

二、niginx服务

源码安装:

yum install gcc-* glibc-* openssl openssl-devel pcre pcre-devel zlib zlib-devel -y
ls
tar xvf nginx-1.10.3.tar.gz
cd nginx-1.10.3
ls
./configure
./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module
make
make install

说明:

pcre: 用来作地址重写的功能。

zlib:nginx 的gzip模块,传输数据打包,省流量(但消耗资源)。

openssl:提供ssl加密协议。

安装:http://www.cnblogs.com/crazyacking/p/5138146.html

相关参数:http://blog.csdn.net/xifeijian/article/details/20956605

location:http://www.tuicool.com/articles/Jr63qy

正向代理,反向代理,透明代理:http://blog.csdn.net/u012572955/article/details/49357219

LB:http://nginx.org/en/docs/http/load_balancing.html

原文地址:https://www.cnblogs.com/guozhenle/p/6924215.html