首页 文章 精选 留言 我的

精选列表

搜索[腾讯云ide],共10000篇文章
优秀的个人博客,低调大师

微软私有云分享(R2)11-应答文件浅析

如何自行编写应答文件 应答文件解决了系统管理员所面临的不同的苛刻用户对系统架构的不同需求。在不使用应答文件的前提下,管理员可能需要为每一种不同的系统架构和配置去手动安装和调试。而使用应答文件,则依然可以保持高度自动化的运维趋势,同时所创建的不同的应答文件在未来还可以重复利用。 自行编写应答文件有一定难度,但学习起来并不困难,对于初学者来说,主要难点是以下部分: "应答文件能够实现什么?"应答文件在系统自动部署中,基本可以做到任何操作,因此考虑问题的角度可以从能够实现什么转变为不能实现什么会比较好。 "如何快速获悉所需要修改的配置,应该查找具体哪个条目?"如果希望更快速的去编写应答文件,首先需要英文有一定阅读能力,以及对常见的Windows设置项的英文单词掌握。在希望设置相关选项时,一般需要搜索的关键词都是设置项的英文名。如防火墙、远程桌面、证书、IE、Mediaplayer等等。 "获取需要调整的条目后,如何获取具体的属性配置写法?"此项同样需要对英文有一定的阅读能力。对于属性的每一个细节,只需在任意一个条目或属性上点击键盘的"F1"即可,如图所示。帮助文件会列出条目或属性的可选参数、所能支持的操作系统,关联的关键字,在线查询等。信息非常完善,唯一的缺点是这份帮助文件没有中文版。 通过帮助文件获取支持 应答文件的兼容性 应答文件是一种xml格式的文本文件,其并非对所有操作系统都能做到完整支持你。无法做到完整支持的原因主要有三点: 32位、64位操作系统差异。 老版本系统的功能在新版本中被更换或删除。 新版本的功能在老版本中未出现。 一般而言,为Windows Server 2012 R2编写的应答文件,多数条目是可以在Windows Server 2008 R2 下重复利用。在正式将应答文件于不同的操作系统之前,需要使用Windows系统映像管理器对应答文件进行验证,如图所示。依次点击"工具栏"→"验证应答文件"即可,当右下角的"验证"处没有错误提示时,即表示该应答文件可以应用于目标操作系统。 当应答文件存在兼容性问题而依然强制部署时,则系统的安装进程会卡在验证失败的环节,导致自动化安装无法继续。 创建的应答文件必须验证 使用应答文件 使用应答文件有两种典型方式: 由SCVMM、WDS、MDT等工具调用 由命令行直接在Sysprep阶段加载。在运行Sysprep时,使用类似" sysprep.exe/unattend:answerfile"的格式运行即可。其中answerfile为提前生成的xml格式的应答文件。 以SCVMM2012 R2调用应答文件为例。 第1步,在"库"窗格点击"导入物理资源",在弹出的"导入库资源"对话框中,点击"添加资源",定位至应答文件所在的磁盘,并选择该文件进行上传,如图所示。 上传应答文件至库服务器 第2步,上传结束后,手动刷新库服务器信息,(默认情况下库服务器一小时刷新一次,当时上传的信息可能不会即刻被发现。)打开任意一个虚拟机模板或来宾OS配置文件,于"脚本"→"应答文件"下,通过"浏览"在库服务器上指定所上传的应答脚本。如选择错误,可以点击"清除"以重新进行选择,如图所示。 本文转自 九叔 51CTO博客,原文链接:http://blog.51cto.com/jiushu/1412434,如需转载请自行联系原作者

优秀的个人博客,低调大师

阿里云服务器CentOS 7.3 64位部署FTP服务

一、安装vsftpd yum -y install vsftpd 二、配置 vsftpd的配置文件在/etc/vsftpd,其中vsftp.conf文件是住配置文件,打开如下: # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). # 匿名访问,NO关闭,默认为YES开启状态 anonymous_enable=NO # # Uncomment this to allow local users to log in. # When SELinux is enforcing check for SE bool ftp_home_dir local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. # When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. #xferlog_file=/var/log/xferlog # # If you want, you can have your log file in standard ftpd xferlog format. # Note that the default log file location is /var/log/xferlog in this case. xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: #ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd/banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that # the user does not have write access to the top level directory within the # chroot) #chroot_local_user=YES #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd/chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES # # When "listen" directive is enabled, vsftpd runs in standalone mode and # listens on IPv4 sockets. This directive cannot be used in conjunction # with the listen_ipv6 directive. listen=NO # # This directive enables listening on IPv6 sockets. By default, listening # on the IPv6 "any" address (::) will accept connections from both IPv6 # and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6 # sockets. If you want that (perhaps because you want to listen on specific # addresses) then you must run two copies of vsftpd with two configuration # files. # Make sure, that one of the listen options is commented !! listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES # FTP跟路径设置 local_root=/home 理论上什么都不用修改就可以,但是实际上,我们都会把匿名访问给关闭,和设置一个FTP根路径 anonymous_enable=NO YES改为NO 添加local_root=/home 等号后面为想要设置的文件路径 三、添加用户 useradd ftpadmin -s /sbin/nologin // ftpadmin可改为你的FTP账号 passwd ftpadmin // 设置密码,输入两遍,密码不可见 chown -R ftpadmin /var/ftp // 改动用户权限,格式为chown -R 用户名 文件路径 四、开启服务 service vsftpd start 附:这篇就先这样,以后再更新卸载,vsftpd主配置文件修改及介绍,黑白名单,制定用户配置权限等等

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册