访问磁盘阵列(RAID) 树莓派配置使用RAID阵列 第二弹

树莓派配置访问磁盘阵列(RAID) 上次讲了如何在树莓派上组建配置磁盘阵列(RAID),这次介绍几种访问磁盘阵列(RAID)的方法。 网络文件系统(NFS)挂载 Samba服务器共享 文件传输协议(FTP)访问(例如,ProFTPD、vsftpd) 树莓派配置网络文件系统(NFS)访问磁盘阵列(RAID) 安装NFS服务 sudo apt-get install portmap sudo apt-get install nfs-kernel-server 编辑配置文件 sudo vi /etc/exports /mnt/raid *(rw,sync,no_root_squash) 启动NFS服务 sudo systemctl enable nfs-server sudo systemctl start nfs-server NFS客户端使用 Windows下挂载NFS 在程序设置中找到 打开或关闭Windows功能,将其中的 基于应用UNIX程序子系统的 和 NFS服务 下的 NFS客户端 和 管理工具,勾选安装启用。 然后就可以通过以下命令来挂载NFS目录 mount \\raspiIP\mnt\raid z: Linux下挂载NFS需要安装nfs-common和portmap,然后使用如下命令挂载使用 sudo mount -t nfs raspiIP:/mnt/raid /mnt/mount_dir 树莓派配置Samba访问磁盘阵列(RAID) 首先安装Samba服务端 sudo apt install samba 为samba添加访问账号 sudo smbpasswd -a bbq 编辑配置文件 vi /etc/samba/smb.conf [RASPI_RAID] comment = RaspiBerryPI_RAID path = /mnt/raid browseable = yes writable = yes guest ok = yes public = yes valid users = bbq create mask = 0777 directory mask = 0777 Samba客户端使用非常方便,在网上邻居中找到即可访问。 ...

三月 22, 2025 · JQX

LFTP使用实例

LFTP使用实例 lftp是一个功能强大的ftp/http客户端,作者是 Alexander Lukyanov。 lftp支持多种传输协议,如ftp、http、https、sftp、exp等。 如同BASH一样,lftp支持任务管理。并且具备书签管理、内置镜像和多线程传送功能。 使用LFTP lftp登录服务器 lftp ftp://user:password@ip:port 以上是一个完整的lftp登录示例,其中包含协议(ftp)、用户名(user)、密码(password)、主机(ip)以及端口(port) 默认情况下lftp直接访问ftp服务,默认登录端口为22,因此我们可以使用以下方法来便捷登录主机 lftp user@ip 然后系统会提示输入password,完成后登录成功! lftp命令行参数 lftp :~> help !<shell-command> (commands) alias [<name> [<value>]] attach [PID] bookmark [SUBCMD] cache [SUBCMD] cat [-b] <files> cd <rdir> chmod [OPTS] mode file... close [-a] [re]cls [opts] [path/][pattern] debug [<level>|off] [-o <file>] du [options] <dirs> exit [<code>|bg] get [OPTS] <rfile> [-o <lfile>] glob [OPTS] <cmd> <args> help [<cmd>] history -w file|-r file|-c|-l [cnt] jobs [-v] [<job_no...>] kill all|<job_no> lcd <ldir> lftp [OPTS] <site> ln [-s] <file1> <file2> ls [<args>] mget [OPTS] <files> mirror [OPTS] [remote [local]] mkdir [-p] <dirs> module name [args] more <files> mput [OPTS] <files> mrm <files> mv <file1> <file2> [re]nlist [<args>] open [OPTS] <site> pget [OPTS] <rfile> [-o <lfile>] put [OPTS] <lfile> [-o <rfile>] pwd [-p] queue [OPTS] [<cmd>] quote <cmd> repeat [OPTS] [delay] [command] rm [-r] [-f] <files> rmdir [-f] <dirs> scache [<session_no>] set [OPT] [<var> [<val>]] site <site-cmd> source <file> torrent [-O <dir>] <file|URL>... user <user|URL> [<pass>] wait [<jobno>] zcat <files> zmore <files> 常用的命令解释如下: ...

四月 1, 2016 · jqx

LNMP使用实例

安装LNMP 更新系统 yum check-update yum update 安装Screen yum install screen 开始安装Lnmp screen -S lnmp wget -c http://soft.vpser.net/lnmp/lnmp0.8.tar.gz //最新版请查阅lnmp官网 tar zxvf lnmp0.8.tar.gz ./lnmp0.8/centos.sh | tee lnmp.log //输出log文件,以备出错时查阅 接下来按照提示设定域名和MysQL密码,程序会自动下载相关程序,而后编译安装 安装PureFTP ./lnmp0.8/pureftp.sh 按提示输入MySQL和Ftp管理员密码,安装完成后可以通过http://vpsip/ftp/来登录管理ftp帐号 使用Lnmp 添加虚拟主机 /root/vhost.sh 按照提示填入域名、目录、rewrite规则文件,如下所示: root@buyvm256:~#/root/vhost.sh ========================================================================= Add Virtual Host for LNMP V0.9 , Written by Licess ========================================================================= LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux This script is a tool to add virtual host for nginx For more information please visit http://www.lnmp.org/ ========================================================================= Please input domain: //添加域名 (Default domain: www.lnmp.org):unixetc.com =========================== domain=unixetc.com =========================== Do you want to add more domain name? (y/n) //添加更多域名 y Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net): www.unixetc.com =========================== domain list=www.unixetc.com =========================== Please input the directory for the domain:unixetc.com : //网站目录 (Default directory: /home/wwwroot/unixetc.com): =========================== Virtual Host Directory=/home/wwwroot/unixetc.com =========================== =========================== Allow Rewrite rule? (y/n) //重写规则 =========================== y Please input the rewrite of programme : wordpress,discuz,typecho,sablog,dabr rewrite was exist. (Default rewrite: other):wordpress //选择重写规则 =========================== You choose rewrite=wordpress =========================== =========================== Allow access_log? (y/n) //是否记录log =========================== n Press any key to start create virtul host... 然后,登录http://vpsip/ftp/添加ftp帐号,http://vpsip/phpmyadmin/编辑数据库 ...

三月 23, 2012 · JQX