---
title: deploy_smb_nfs
date: 2018-09-19 17:04:48
---
## 安装 smb
```bash
yum -y install samba samba-client
systemctl enable smb.service
systemctl start smb.service
systemctl status smb.service
```
## 修改配置文件
```bash
cat /etc/samba/smb.conf
```
## 测试smb.conf配置是否正确
## 添加samba用户
smbpasswd -a www
## 激活用户
smbpasswd -e www
## 测试连接samba服务器
关闭SELINUX : setenforce 0
清空iptables : iptables -F !!!
关闭iptables : service iptables stop !!!
smbclient -L 127.0.0.1 -U www
https://blog.youkuaiyun.com/u012256258/article/details/53074635/
## nfs
systemctl stop firewalld
yum -y install nfs-utils rpcbind
yum -y install nfs-utils
https://www.cnblogs.com/liuyisai/p/5992511.html
## 启动
exportfs -r
service rpcbind start
service nfs start
## 查看状态
rpcinfo -p localhost
showmount -e localhost
yum -y install epel-release
yum -y install python-pip
## linux
git config --global diff.tool bc4
git config --global difftool.prompt false
git config --global difftool.bc4.cmd '"/usr/local/bin/bcomp" "$LOCAL" "$REMOTE"'
git config --global merge.tool bc4
git config --global mergetool.prompt false
git config --global mergetool.bc4.cmd '"/usr/local/bin/bcomp" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"'
git config --global mergetool.bc4.trustexitcode true
## win
git config --global diff.tool bc4
git config --global difftool.prompt false
git config --global difftool.bc4.cmd '"D:\Program Files\Beyond Compare 4\BCompare.exe" "$LOCAL" "$REMOTE"'
git config --global merge.tool bc4
git config --global mergetool.prompt false
git config --global mergetool.bc4.cmd '"D:\Program Files\Beyond Compare 4\BCompare.exe" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"'
git config --global mergetool.bc4.trustexitcode true
https://blog.youkuaiyun.com/paincupid/article/details/49909997
beyone compare 激活码
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB
rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS
NisHFBTcWJS0sC5BTFwrtfLEE9lEwz2bxHQpWJiu12ZeKpi+7oUSqebX+
--- END LICENSE KEY -----