mysql安装samba_centos 安装samba
关闭SELinux
# 临时关闭
setenforce 0
# 修改配置文件
vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
安装samba
yum install samba samba-client samba-swat
安装成功之后查看服务状态
service smb status
# 以下是状态 未启动 证明安装成功
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
Active: inactive (dead)
添加开机启动
chkconfig --level 35 smb on
取消开机启动
chkconfig --level 35 smb off
配置
添加 share 并指定目录 /home/share
vim /etc/samba/smb.conf
# 修改为如下内容
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
# map to guest = Bad Password
#guest account = guest
[share]
comment = share folder
path = /home/share
create mask = 0664
directory mask = 0775
browseable = yes
writable = yes
public = yes
运行 testparm 检查配置是否正确
testparm
添加用户
运行下面命令 添加root用户并设置密码
smbpasswd -a root
启动并查看状态
service smb start
service smb status
客户端安装并映射
1. 安装映射工具
yum install cifs-utils
2. mount映射
mount -t cifs //serviceip//share /home/share -o username=root,password=123123
3. 取消映射
umount /home/share
4. 添加开机自动映射
vim /etc/fstab
#追加
//serviceip/share /home/share cifs defaults,auto,username=root,password=123123 0 0
文章来源于互联网,如有雷同请联系站长删除:centos 安装samba
mysql安装samba_centos 安装samba相关推荐
- 7 centos 源码安装samba_centos 7 安装 samba 服务
在centos 7 中安装 samba 服务 1.samba软件安装:yum -y install samba* 2.查看安装好的samba服务的和客户端及工具[root@localhost ~]# ...
- [转]CentOS6.4下Mysql数据库的安装与配置
如果要在Linux上做j2ee开发,首先得搭建好j2ee的开发环境,包括了jdk.tomcat.eclipse的安装(这个在之前的一篇随笔中已经有详细讲解了Linux学习之CentOS(七)–Cent ...
- CentOS6.4下Mysql数据库的安装与配置
一.mysql简介 说到数据库,我们大多想到的是关系型数据库,比如mysql.oracle.sqlserver等等,这些数据库软件在windows上安装都非常的方便,在Linux上如果要安装数据库,咱 ...
- Linux学习之CentOS6下Mysql数据库的安装与配置
转自:http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html 如果要在Linux上做j2ee开发,首先得搭建好j ...
- Linux学习之CentOS(十三)--CentOS6.4下Mysql数据库的安装与配置
如果要在Linux上做j2ee开发,首先得搭建好j2ee的开发环境,包括了jdk.tomcat.eclipse的安装(这个在之前的一篇随笔中已经有详细讲解了Linux学习之CentOS(七)--Cen ...
- linux学习之centos(三):mysql数据库的安装和配置
前言:mysql简介 说到数据库,我们大多想到的是关系型数据库,比如mysql.oracle.sqlserver等等,这些数据库软件在windows上安装都非常的方便,在Linux上如果要安装数据库, ...
- liunx上mysql源码安装mysql,搞定linux上MySQL编程(一):linux上源码安装MySQL
[版权声明:尊重原创,转载请保留出处:blog.csdn.net/shallnet,文章仅供学习交流,请勿用于商业用途] 1. 首先下载源码包: ftp://ftp.jaist.ac.jp/pub/m ...
- MySQL下载与安装教程以及环境变量配置
MySQL下载 1 搜索mysql 选择mysql downloads 如下 2 点击滑动到底部选择社区版本(免费) 如下 3 选择Community Server 如下 4 选择对应的版本下载 我选 ...
- MySQL半同步安装以及参数
MySQL半同步安装以及参数 基于MySQL5.5 官档地址: Semisynchronous Replication Administrative Interface https://dev.mys ...
最新文章
- 区块链还能赚钱吗 区块链挖矿赚钱吗
- IP多播技术介绍(二)
- go 清空文件内容_玩转Go单元测试,你只需要掌握这5点
- 实用场景解析:那些漂亮的可视化图表都是如何做的?
- C#集合类型——Array、ArrayList、List 之浅谈
- C/C++获取当前路径、获取任意pid完整路径(readlink()函数)
- Centos 虚拟机克隆后eth0网卡打不开
- 前端监控和前端埋点方案设计
- 基于Java的外卖订餐系统
- PHP 模拟库存出库商品
- ngrok 通过外网链接映射到本地机器,支持http,https
- windows xp下无线网卡断线的问题。
- angular中的cookie读写
- 大数据与云计算概论简介
- odoo15 po文件自动翻译器
- kinova_j2s6s300【Cartesian position control Finger position control】
- [转载]走近 Jazzy
- DEFCON 20 CTF 磁盘取证分析题目
- Android让屏幕保持常亮,不熄屏的三种方法
- fastapi——快速入门