user ConfigurationSwitch to the user_conf created above#vim test1local_root=/home/virftp/Test1Anonymous_enable=nowrite_enable=yeslocal_umask=022anon_upload_enable= noanon_mkdir_write_enable=noidle_session_timeout=data_connection_timeout =max_clients=tenmax_per_ip=5local_max_rate =50000The meaning of each parameter should not be difficult to understand according to the literal meaning#mkdir/home/virftp/test1; Touch Test.txt#chown-R virftp.virftp/home/virftp#vim/etc/pam.d/vsftpd//Add at the begin
not require a virtual optical drive program. Simply mount it.
FTP server: ProFTPd, vsftpd. ProFTPD is very powerful, but I only use the simplest setting.
WWW server: Apache. (I usually do not open)
FTP client program: lftp and ncftp. They are all text operations, but they are much more convenient than graphic interfaces. For example, lftp has almost all the convenient functions of bash, including TAB compl
operate on a single file, such as uploading or downloading a single file, not a folder, or operating multiple files at a time. The above disadvantages can be solved in the following way.
Lftp client accesses the ftp server -- install the client
Brief Introduction: Software Installation ---- sudo apt-get install lftp; Anonymous Logon: lftp + ip (server), the
, and executes commands in the file.
Well, I have studied that sftp also has the-B parameter to run batchfile.
Wipe !! Then it is stuck here. The-B parameter can only run the cmd command, but cannot automatically authenticate the password. To avoid entering the password, you must use the ssh publickey for authentication !!
After multiple times of searching by Du Niang and Google, the following methods are taken:
1. Install lftp. There are already
be appended directly to the photo script (with sudo apt-get install lftp installation lftp)
/usr/bin/lftp Open 192.168.1.103User Username passwordCD photosPut/home/linaro/*.jpgByeEof
9. Run Crontab-e to set the script that was written above to schedule the task, 5 minutes at a time.
*/5 * * *
file:[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDBPURE-PW can also list the current FTP account, of course, you can delete an account, we create an account:[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftp_user2-uwww-d/tmp[[email protected] ~]#/usr/local /PUREFTPD/BIN/PURE-PW MKDBList Current Account:[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW listThe command to delete the account is:[Email protected] ~]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW Userdel ftp_user2Test P
listThe command to delete the account is:[Email protected] ~]# /USR/LOCAL/PUREFTPD/BIN/PURE-PW Userdel ftp_user2Test PURE-FTPDThe tool to be used for testing is called LFTP, which is installed first:[email protected] ~]# Yum install-y lftpTest:[Email protected] ~]# touch/data/www/123.txt[[email protected] ~]# lftp [email protected] Password: lftp [email Protec
://www.linuxidc.com/Linux/2012-11/73687.htm The PURE-PW command can be viewed through PURE-PW--help, MKDB command: mkdb Password Vault file name Description: PURE-PW useradd Virtual User-U system exists with a user-D specified FTP directory 44 Installing detailed FTP tools on the client Linux under Installation lftp yum Install–y lftp ftp method: lftp [email prot
selinux mode. Otherwise, an error will be reported after you log on to the virtual account. you can also permanently disable the selinux configuration file SELINUX = disabled to restart the server.
--------------------------------------------------------# Create a directory and file in the vsftp access directory for testingMkdir/usr/html/test111 touch/usr/html/222# Install lftp for access testingYum install lftp
associated with programming interface {#定义一个服务来启动pacemaker ver:0 #定义版本 Name:pacemaker #这个表示启动corosync时会自动启动pacemaker}aisexec {#表示启动ais的功能时以哪个用户的身份去运行的 user:root group:root #其实这个块定义不定义都可以, corosync default is to run as root}Here we change a random number pool, and then copy the configured Corosync configuration and authentication files to another node:For Corosync, the communication between our nodes must be able to achieve security authentication, to use a key file:# corosync-keygen # Generat
installation package)# Mount-o loop iso image path mount point# Mount-o loop/root/Desktop/rhel-server-6.4-x86_64-dvd.iso/mnt/rhel6u4# Cd/mnr/rhel6u4/PackagesPackage name composition: (General)Software name version number (main version, minor version, revision number) operating system cpu Platform Architecture formatOperating System: el6 el5 Fedora SUSE debin UbuntuCpu platform: i386 486 586 686 32-bit SoftwareX86_64 indicates that 64 is softwareNoarch indicates 32, 64 genericRpm commandRpm inst
:
#在主配置文件最下面增加的代码chroot_local_user=YESguest_enable=YESguest_username=virftp #告诉服务现在用的虚拟用户virtual_use_local_privs=YES #开启虚拟用户和系统用户的映射user_config_dir=/etc/vsftpd/vsftpd_user_confallow_writeable_chroot=YESStart the VSFTPD service to view the process and listening portsFTP Listener is 21 port, 22 port is sshd,23 port is telnetFTP testInstall an FTP client software on Windows FileZilla client,linux FTP test, install the LFTP package (
a sentence, we can refer to the
First you need LFTP installation:
The code is as follows
Copy Code
# yum-y Install Lftp
Make sure it's ready! (Available lftp-v detection)
The code is as follows
Copy Code
Then VI backup.sh
Then copy the code and modify your host-related parameters and
novice will not very good start. Share one of your own backup scripts today.
As detailed in the Appendix http://jimmyli.blog.51cto.com/3190309/584992 "website operation and maintenance off-site backup scheme and emergency standby mirror Station"
First, the preparatory work:
1. Software Installation
Need to be in advance in the Linux Server installed LFTP,LFTP function more powerful, CentOS Direct execu
a user information database file:#/usr/local/pureftpd/bin/pure-pw MKDBPURE-PW can also list the current FTP account, of course, you can delete an account, we create an account:#/usr/local/pureftpd/bin/pure-pw useradd ftp_user2-uwww-d/tmp#/usr/local/pureftpd/bin/pure-pw MKDBList Current Account:#/usr/local/pureftpd/bin/pure-pw ListThe command to delete the account is:#/usr/local/pureftpd/bin/pure-pw Userdel Ftp_user2(6) Test pure-ftpdThe tool to be used for testing is called
code into an RPM Binary Package.
On RHEL5, it is very easy to compile kernel. src. rpm. A single command can be done, but the cup is available in RHEL6.1 .... On the one hand, RedHat has changed some packaging methods to curb Oracle's OEL. On the other hand, the kernel changes a lot from 2.6.18 to 2.6.32, and the span is too large, sometimes changing.
OS: RHEL6U1, kernel: 2.6.32-131.0.15.el6.x86 _ 64
Ensure that the/root space is more than 20 GB.
1) Obtain kernel. src. rpm
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.