Window环境下远程编辑Linux系统下文本

背景

  最近在LAMP(CentOS、Apache、Mysql、PHP )环境下开发Web网站,采用Laravel框架。在开发期间,发现自己不太习惯使用VIM编写代码。逐渐在脑中产生一个想法,能否在Windows环境下远程编辑代码。这个念头驱使着我寻找解决之道,最终发现了一个开源软件 Samba。

介绍

  Samba is the standard Windows interoperability suite of programs for Linux and Unix.

       Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.

安装

  CentOS环境下:

  yum -y install samba samba-client

配置

  配置文件smb.conf存放于/etc/samba目录下,在文本最后增加如下配置即可:

[public]

  comment=shared Directory    --注释描述

  path=/usr/local/log     --共享/usr/local下文件log

  public=yes      --不知道

  writeable=yes    --可写

  browseable=yes  --可读

  guest ok = yes     --不知道

创建用户
#groupadd samba #useradd ted -g samba -s /sbin/nologin
#smbpasswd -a samba #New SMB password: #Retype new SMB password: #Added user ted. #[root@base samba]#

启动
#systemctl start smb
#systemctl enable smb
Created symlink from /etc/systemd/system/multi-user.target.wants/smb.service to /usr/lib/systemd/system/smb.service.
 

猜你喜欢

转载自www.cnblogs.com/paopaorun/p/11456585.html