什么是上传文件的facility的动词

您所在位置: &
&nbsp&&nbsp&nbsp&&nbsp
运筹管理 05b Facility Layout Manufacturing and Services.ppt67页
本文档一共被下载:
次 ,您可免费全文在线阅读后下载本文档
文档加载中...广告还剩秒
需要金币:60 &&
你可能关注的文档:
··········
··········
Chapter 5, Part B Facility Layout:
Manufacturing and Services
Overview Facility Layout Manufacturing Facility Layouts Analyzing Manufacturing Facility Layouts Service Facility Layouts Wrap-Up: What World-Class Companies Do Facility Layout Facility layout means planning: for the location of all machines, utilities, employee workstations, customer service areas, material storage areas, aisles, restrooms, lunchrooms, internal walls, offices, and computer rooms for the flow patterns of materials and people around, into, and within buildings Locate All Areas In and Around Buildings Equipment Work stations Material storage Rest/break areas Utilities Eating areas Aisles Offices Characteristics of the Facility Layout Decision Location of these various areas impacts the flow through the system. The layout can affect productivity and costs generated by the system. Layout alternatives are limited by the amount and type of space required for the various areas the amount and type of space available the operations strategy . . . more Characteristics of the Facility Layout Decision Layout decisions tend to be: Infrequent Expensive to implement Studied and evaluated extensively Long-term commitments Manufacturing Facility Layouts Materials Handling The central focus of most manufacturing layouts is to minimize the cost of processing, transporting, and storing materials throughout the production system. Materials used in manufacturing include: Raw material Purchased components Work-in-progress Finished goods Packaging material Maintenance, repair, and operating supplies Materials Handling A materials-handling system is the entire network of transportation that: Receives material Stores material in inventories Moves material between processing points Deposits the finished products into vehicles for delivery to customers
Materials Handling Material-Handling Principles Move directly
no zigzagging/backtracking
Minimize human effort required Move heavy/bulky items the shortest distan
正在加载中,请稍后...用户名:king_819
文章数:139
评论数:600
访问量:2163739
注册日期:
阅读量:1297
阅读量:3317
阅读量:445115
阅读量:1130836
51CTO推荐博文
&&& 批量同步、批量更新,这应该是做运维的朋友们经常做的工作,rsync是linux下一款非常强大的同步工具,采用差异同步的方法,只上传文件/文件夹的不同部分,同时可以对上传部分先进行压缩,所以rsync的传输效率是很高的但rsync也有缺点,最大的问题就是每次执行rsync命令都会遍历目标目录,当文件不多时,这没什么问题,一旦文件数到了一定规模,那么每次遍历都会消耗很多资源,如果只对经常改动的目录进行同步,也可以忽略这个问题,如果每次改动的目录多较大,那么就要用到inotify了,Inotify是一种强大的、细粒度的、异步的文件系统事件监控机制,Linux内核从2.6.13起,加入了对Inotify的支持,通过Inotify可以监控文件系统中的添加、删除、修改、移动等各种事件,但inotify只提供了C语言接口,不方便调用,所以我们需要先安装inotify-tools
一、系统环境:
CentOS_5.7-x86_64
更新源服务器:192.168.9.227
目的服务器:192.168.9.226& 192.168.9.228& ... ...
二、目的服务器配置:192.168.9.226 192.168.9.228(rsync服务端):
1、检查rsync是否安装
rpm&-qa|grep&rsync&
如果没有发装,执以下命令进行安装
yum&-y&install&rsync&
2、定义rsync配置文件/etc/rsyncd.conf
192.168.9.226:
cat&&/etc/rsyncd.conf&&&uid&=&nobody& &gid&=&nobody& &use&chroot&=&no&max&connections&=&100& &timeout&=&600& &pid&file&=&/var/run/rsyncd.pid&& &lock&file&=&/var/run/rsyncd.lock&& &log&file&=&/var/log/rsyncd.log&& &[web1]& &path&=&/data/www1/&& &ignore&errors&& &read&only&=&no& &list&=&no& &hosts&allow&=&192.168.9.0/255.255.255.0&& &auth&users&=&www1& &secrets&file&=&/etc/www1.pwd& &EOF&
192.168.9.228:
cat&&/etc/rsyncd.conf&&&uid&=&nobody& &gid&=&nobody& &use&chroot&=&no&max&connections&=&100& &timeout&=&600& &pid&file&=&/var/run/rsyncd.pid&& &lock&file&=&/var/run/rsyncd.lock&& &log&file&=&/var/log/rsyncd.log&& &[web2]& &path&=&/data/www2/&& &ignore&errors&& &read&only&=&no& &list&=&no& &hosts&allow&=&192.168.9.0/255.255.255.0&& &auth&users&=&www2& &secrets&file&=&/etc/www2.pwd& &EOF&
3、rsyncd.conf配置文件详解
uid = nobody&&&&& //运行RSYNC守护进程的用户
gid = nobody&&&&& //运行RSYNC守护进程的组
use chroot = 0&&& //不使用chroot
max connections = 0&& // 最大连接数,0为不限制
port = 873& //默认端口873
下面这些文件是安装完RSYNC服务后自动生成的文件
pid file = /var/run/rsyncd.pid&&& //pid文件的存放位置
lock file = /var/run/rsync.lock&& //锁文件的存放位置.指定支持max connections参数的锁文件,默认值是/var/run/rsyncd.lock.
log file = /var/log/rsyncd.log&&& //日志记录文件的存放位置
Timeout = 300
通过该选项可以覆盖客户指定的IP超时时间.通过该选项可以确保rsync服务器不会永远等待一个崩溃的客户端.超时单位为秒钟,0表示没有超时定义,这也是默认值.对于匿名rsync服务器来说,一个理想的数字是600.
Log format = %t %a %m %f %b
通过该选项用户在使用transfer logging可以自己定制日志文件的字段.其格式是一个包含格式定义符的字符串,可以使用的格式定义符如下所示:
%h 远程主机名
%a 远程IP地址
%l 文件长度字符数
%p 该次rsync会话的进程id
%o 操作类型:& send& 或& recv&
%P 模块路径
%t 当前时间
%u 认证的用户名(匿名时是null)
%b 实际传输的字节数
%c 当发送文件时,该字段记录该文件的校验码
默认log格式为:& %o %h [%a] %m (%u) %f %l& ,一般来说,在每行的头上会添加& %t [%p] & .在源代码中同时发布有一个叫rsyncstats的perl脚本程序来统计这种格式的日志文件.
#transfer logging = yes
使rsync服务器使用ftp格式的文件来记录下载和上载操作在自己单独的日志中.
syslog facility = local3
指定rsync发送日志消息给syslog时的消息级别,常见的消息级别是:uth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, security, sys-log, user, uucp, local0, local1, local2, local3,local4, local5, local6和local7.默认值是daemon.
[web1]&& //这里是认证的模块名,在client端需要指定
path = /data/www1/& //需要做镜像的目录,不可缺少!
comment = backup web& //这个模块的注释信息
ignore errors&&& //可以忽略一些无关的IO错误
read only = yes& //该选项设定是否允许客户上载文件.如果为true那么任何上载请求都会失败,如果为false并且服务器目录读写权限允许那么上载是允许的.默认值为true.
list = no&&&&&&& //不允许列文件
auth users = bak&&& //认证的用户名,如果没有这行则表明是匿名,此用户与系统无关
该选项指定由空格或逗号分隔的用户名列表,只有这些用户才允许连接该模块.这里的用户和系统用户没有任何关系.如果& auth users& 被设置,那么客户端发出对该模块的连接请求以后会被rsync请求challenged进行验证身份这里使用的challenge/response认证协议.用户的名和密码以明文方式存放在& secrets file& 选项指定的文件中.默认情况下无需密码就可以连接模块(也就是匿名方式).
secrets file = /etc/www1.pwd&&&&& //密码和用户名对比表,密码文件自己生成
该选项指定一个包含定义用户名:密码对的文件.只有在& auth users& 被定义时,该文件才有作用.文件每行包含一个username:passwd对.一般来说密码最好不要超过8个字符.没有默认的secures file名,需要限式指定一个(例如:/etc/www1.pwd).注意:该文件的权限一定要是600,否则客户端将不能连接服务器.
hosts allow = 192.168.9.0/255.255.255.0& //允许主机或网段
该选项指定哪些IP的客户允许连接该模块.客户模式定义可以是以下形式:
单个IP地址,例如:192.168.9.227
整个网段,例如:192.168.9.0/24,也可以是192.168.9.0/255.255.255.0
多个IP或网段需要用空格隔开,&*&则表示所有,默认是允许所有主机连接.
hosts deny = 0.0.0.0/0& //禁止主机
4、建立认证文件/etc/www1.pwd ,此文件须与配置文件中指定文件名保持一致
此处格式为:username:password,安全问题,并不建议实际使用中使用root用户
192.168.9.226:
echo&&www1:741852&&&/etc/www1.pwd&
192.168.9.228:
echo&&www2:951753&&&/etc/www2.pwd&
并且我们需要设置此文件的权限为600
chmod&600&/etc/www1.pwd &chmod&600&/etc/www2.pwd &chmod&600&/etc/rsyncd.conf&
5、建立motd文件(可有可无)
rsyncd.motd记录了rsync服务的欢迎信息,你可以在其中输入任何文本信息,如:
echo&&Welcome&to&use&the&rsync&services!&&&/var/rsyncd.motd&
6、启动rsync
/usr/bin/rsync&--daemon &&echo&&/usr/bin/rsync&--daemon&&&/etc/rc.local&
三、更新源服务器配置:192.168.9.227 (rsync客户端)
1、inotify 可以监视的文件系统事件包括:
IN_ACCESS,即文件被访问
IN_MODIFY,文件被 write
IN_ATTRIB,文件属性被修改,如 chmod、chown、touch 等
IN_CLOSE_WRITE,可写文件被 close
IN_CLOSE_NOWRITE,不可写文件被 close
IN_OPEN,文件被 open
IN_MOVED_FROM,文件被移走,如 mv
IN_MOVED_TO,文件被移来,如 mv、cp
IN_CREATE,创建新文件
IN_DELETE,文件被删除,如 rm
IN_DELETE_SELF,自删除,即一个可执行文件在执行时删除自己
IN_MOVE_SELF,自移动,即一个可执行文件在执行时移动自己
IN_UNMOUNT,宿主文件系统被 umount
IN_CLOSE,文件被关闭,等同于(IN_CLOSE_WRITE | IN_CLOSE_NOWRITE)
IN_MOVE,文件被移动,等同于(IN_MOVED_FROM | IN_MOVED_TO)
注:上面所说的文件也包括目录。
2、安装inotify-tools
在安装inotify-tools前请先确认你的linux内核是否打到了2.6.13,并且在编译时开启了CONFIG_INOTIFY选项,也可以通过以下命令检测
ls&/proc/sys/fs/inotify&
如果有 max_queued_events,max_user_instances,max_user_watches 三项就说明支持
wget&/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz &tar&xvf&inotify-tools-3.14.tar.gz &cd&inotify-tools-3.14 &./configure &make&install&
3、编写rsync监控脚本
vi&/root/rsync.sh&
-m, 即--monitor,表示始终保持事件监听状态。
#!/bin/bash
host1=192.168.9.226
host2=192.168.9.228
src=/data/www/
des1=web1 des2=web2 user1=www1 user2=www2
/usr/local/bin/inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format
'%T %w%f' \
-e modify,delete,create,attrib \
| while read
rsync -vzrtopg --delete --progress ${src} ${user1}@${host1}::${des1} --password-file=/etc/www1.pwd &&
rsync -vzrtopg --delete --progress ${src} ${user2}@${host2}::${des2} --password-file=/etc/www2.pwd &&
echo &${files} was rsynced&
/tmp/rsync.log 2&1
echo &---------------------------------------------------------------------------&
-r, 即--recursive,表示递归查询目录。
-q, 即--quiet,表示打印出监控事件。
-e, 即--event,通过此参数可以指定要监控的事件,常见的事件有modify、delete、create、attrib等
--timefmt:指定时间的输出格式
--format:指定变化文件的详细信息
建立认证文件& (rsync客户端认证文件只用加入密码)
echo&&741852&&&/etc/www1.pwd &echo&&951753&&&/etc/www2.pwd &chmod&600&/etc/www1.pwd &chmod&600&/etc/www2.pwd&
/bin/sh&-n&/root/rsync.sh&&//语法检查 &chmod&+x&/root/rsync.sh &nohup&sh&/root/rsync.sh&& &echo&&nohup&sh&/root/rsync.sh&&&&&/etc/rc.local&
四、同步测试
在更新源服务器上新建一个文件,运行以下的命令,看文件是否可以正常同步,看有无报错信息
rsync&-vzrtopg&--delete&--progress&/data/www1/&&--password-file=/etc/www1.pwd&
将要更新的文件提交到更新源服务器中,这样就通过inotify+rsync批量的将更新文件同步到所有的目的服务器中,相当方便快捷本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)
11:07:31 11:11:34 16:03:34 16:09:42 16:50:25 16:59:17 19:26:50 14:22:46 16:01:22 18:51:08 10:53:22 11:05:32 20:12:35 14:33:13 15:34:01 15:21:01 11:06:14 12:37:53当前位置: &
独立文件的英文
英文翻译unique file&&&& be on one's own ...&&&& inst ...&&&&independent file facility&&&&independent file facility&&&&separate instrument&&&&dlg&&&&os/owner&&&&create file&&&&building file list&&&&new folder&&&&execute a document&&&&file creation error&&&&file creation error&&&& donovan michael sullivan&&&&band separate&&&&createfolderfail&&&&lap-man sin&&&&guo liwen&&&&li-wen jiang&&&&jin liwen&&&&lin liwen&&&&li-wen liu&&&&niu liwen&&&&sullivan&&&& sullivan
例句与用法User controls cannot run as stand - alone files用户控件不能作为独立文件运行。 In addition , you might want to create a stand - alone file此外,您可能还需要创建独立文件。 To learn more about keeping the code in a separate file , see要了解有关在独立文件中保存代码的更多信息,请参见Stand - alone files that are excluded from solution and project builds不包括在解决方案和项目生成中的独立文件。 Isolated file storage独立文件存储The following table lists tasks commonly associated with isolated file storage . to下表列出了通常与独立文件存储相关联的任务。 It seems the jsp compiler or validator in rad 6 tries to compile those fragment files like a standalone files好像rad 6中的jsp编译器或验证程序试图将这些片段文件作为独立文件编译。 Entitys are extremely useful for repeating information or large blocks of text that could be stored in separate files在重复可以存储在独立文件中的信息或大块文本时, entity非常有用。 The lecture notes are available as a single ( pdf ) file , or as separate files related to the lectures in the table below课堂讲稿是单个( pdf )文件,或是与下表所列讲课内容相对应的独立文件。 Consider placing the workplace web content management indexes in a separate file system on a separate physical drive考虑将workplace web content management索引放置在独立的物理驱动器上的独立文件系统中。 更多例句:&&1&&&&
相邻词汇热门词汇
独立文件的英文翻译,独立文件英文怎么说,怎么用英语翻译独立文件,独立文件的英文意思,,,发音,例句,用法和解释由查查在线词典提供,版权所有违者必究。
&&&&&&&&&&&&&&&&
Copyright &
(京ICP备号)
All rights reserved您所在位置: &
&nbsp&&nbsp&nbsp&&nbsp
常见主机资料缩语表).doc 7页
本文档一共被下载:
次 ,您可全文免费在线阅读后下载本文档。
下载提示
1.本站不保证该用户上传的文档完整性,不预览、不比对内容而直接下载产生的反悔问题本站不予受理。
2.该文档所得收入(下载+内容+预览三)归上传者、原创者。
3.登录后可充值,立即自动返金币,充值渠道很便利
需要金币:150 &&
你可能关注的文档:
··········
··········
常见主机资料缩语表 AAASFAdvancedAddressSpaceFacilityACBAccessControlBlockACFAccessControlFacility,AdvancedCommunicationFunctionACSAutomaticClassSelectionAIXAlternateIndexAMSAccessMethodServicesAOSAutomatedOperationSubsystemAPARAuthorizedProgramAnalysisReportAPFAuthorizedProgramFacilityAPPCAdvancedProgramtoProgramCommunicationAPPNAdvancedPeer-to-PeerNetworkingARMAutomaticRestartManagementARSAvailability-Reliability-ServiceabilityASMAuxiliaryStorageManagerBBCPBaseControlProgramBCSBasicCatalogStructureBSAMBasicStorageAccessMethodBSCBinarySynchronousCommunicationCCAControlAreaCAEClientApplicationEnablerCASCatalogAddressSpaceCBIPOCustomBuiltInstallationProcessOfferingCBPDOCustomBuiltProductDeliveryOfferingCDRACharacterDataRepresentationArchitectureCDSCCatalogDataSpaceCacheCECCentrolElectricComplexCFCouplingFacilityCIControlIntervalCIDConfigurationInstallationDistributionCIDFControlIntervalDefinitionFieldCKDCountKeyDataCLPCommandLineProcessorCMPLCurrentMultiprogrammingLevelCOBRACommonObjectRequestBrokerArchitectureCPCenterProcessor,ControlPointCPCCentralProcessorComplexCSACommonServiceAreaCSIConsolidatedSoftwareInventoryCTCChanneltoChannelCTSCommonTransportSemanticsDDADSMDirectAccessDeviceSpaceManagementDAEDumpAnalysisandEliminationDASDDirectAccessStorageDeviceDATDynamicAddressTranslationDCEDistributeComputingEnviromentDDCSDistributeDatabaseConnectionServiceDDRDynamicDeviceReconfigurationDFDSSDataFacilityDataSetServicesDFHSMDataFacilityHierarchicalSpaceManagerDFSDistributeFileSystemDFSMSDataFacilityStorageManagementSubsystemDIVDatainVirtualDLFDataLookasideFacilityDLIBDistributionLibrariesDMSDatabaseManagedStorageDNSDomainNameSystemDPLDistributedProgramLinkDRDADistributeRelativeDatabaseArchitectureDSCBDataSetControlBlockDSFDeviceSupportFacilitiesEECSAExtendedCommonServiceAreaECTExitControlTableEDTEligibleDeviceTableELSQAExtendedLocalSystemQueueAreaENEndNodeEPLPAExterdedPageableLinkPackAreaERDSErrorRecordDataSetEREPEnviromentRecordingEditingandPrintingProgramESAEnterpriseServerArch
正在加载中,请稍后...拒绝访问 |
| 百度云加速
请打开cookies.
此网站 () 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(38caa76f007e506e-ua98).
重新安装浏览器,或使用别的浏览器

我要回帖

更多关于 facility和loan的区别 的文章

 

随机推荐