First, create a site. Both httpd and nginx are supported. The root directory of my site points to "/var/www/centos /"
Download the source and synchronize the source
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/updates/x86_64/ opt/centos/other/updates/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/extras/x
), with the GPG-KEY available on the disc.2. howCentOSCreate a public image
For details, see the official Chinese document:
Http: // wiki.Centos. Org/zh/HowTos/CreatePublicMirrors
Provide a SHELL script, and then cron runs automatically ~~
The script is slightly modified and replaced with the image source of HKUST. For the list of available images, see:
Http: // www.Centos. Org/download/mirrors/
The code is as follows:
Copy code
Localpath = "/mirrors/CentOS"Mirror = "mirrors
. Available image list see: http://www.centos.org/download/mirrors/
Copy the Code as follows:
Localpath = "/mirrors/CentOS"
Mirror = "mirrors.hustunique.com: centos"
Rsync = "rsync-avzH -- delete" Baselist = "centosplus extras fasttrack OS updates"
Archlist = "x86_64" Do
For base in $ baselist
Do
For arch in $ archlist
Do
Remote = $ mirror/$ ver/$ base/$ arch/
Mkdir-pv $ localpath/$ ver/$ base/$ arch/
$
.
Check in.
Update on the server.
------ Solution --------------------
Discussion
It may be easier to use code management tools.
Check in.
Update on the server.
------ Solution --------------------
Discussion
No, I don't want to use svn. We use svn for local development, but I don't want to release updates in this way,
This is what we want to do now.
Use shell programming, use the linux file search command to find the files modified
.
Check in.
Update on the server.
------ Solution --------------------
Discussion
It may be easier to use code management tools.
Check in.
Update on the server.
------ Solution --------------------
Discussion
No, I don't want to use svn. We use svn for local development, but I don't want to release updates in this way,
This is what we want to do now.
Use shell programming, use the linux file search command to find the files modified
folder in the/var/www/html/yum/base/8/i386 Directory, which contains the following files:
# Ls-l/var/www/html/yum/base/8/i386/repodata/
Total 9268
-Rw-r -- 1 root 2227275 2008-01-12 21:11 filelists.xml.gz
-Rw-r -- 1 root 6487453 2008-01-12 21:11 other.xml.gz
-Rw-r -- 1 root 747714 2008-01-12 21:11 primary.xml.gz
-Rw-r -- 1 root 951 2008-01-12 21:11 repomd. xml
Next, go to the/var/www/html/yum/updates/8/i386 directory and download the latest rpm package in the
retains links and file attributes, and Recursively copies directories.2. Create a repo FileThe Code is as follows:Cat>/etc/yum. repos. d/CentOS-Local.repo[Local]Name = Local YumBaseurl = file: // yum/Gpgcheck = 1Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7Enabled = 1Q: Why can't I install the createrepo software?The role of createrepo is to create an index file (in the repodata folder), with the
Ubuntu SSH connection, remote upload download fileBlog Category:
Ubuntu
Installing the SSH (Secure Shell) service to provide remote management servicessudo apt-get install SSHSSH Remote Login Ubuntu MachineSSH [email protected]Copy files/folders from a remote Ubuntu machine to a local (SCP)scp-r [email protected]:/home/username/remotefile.txt.Copy files/folders from local to the remote Ubuntu m
The Maven master database requires more than 10 Gb of space and is updated every 4 hours.
If you want to create your own image, you can use rsync to download the following images:
Rsync-v-T-l-R mirrors.ibiblio.org: maven2/Your/local/pathRsync-v-T-l-R rsync: // rsync. CICA.
Today, we will show you how to configure the local software repository directly through the official Ubuntu software repository on your Ubuntu PC or Ubuntu server. Creating a local software repository on your computer has many benefits. If you have many computers that require software installation, security upgrades, and repair patches, configuring a local softwa
attributes, and recursively copies the directory
2. Create repo files
The code is as follows
Copy Code
Cat >>/etc/yum.repos.d/centos-local.repo[Local]Name=local Yumbaseurl=file:///yum/Gpgcheck=1Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-7Enabled=1
Q: Why not even Createrepo software is installed?
The role of Createrepo is to create an index file (located in t
Tags: local SCP efi Delete sync remote manage file useInstalling the SSH (Secure Shell) service to provide remote management servicessudo apt-get install SSHSSH Remote Login Ubuntu MachineSSH [email protected]Copy files/folders from a remote Ubuntu machine to a local (SCP)scp-r [email protected]:/home/username/remotefile.txt.Copy files/folders from local to the r
Nbsp; after FedoraCore8 is installed, you must update it using yum. when you add a yum update source, the system-provided updates are extremely slow and there is no possibility of completion. the following describes how to install the httpd package using the httpd method: # yuminstallhttpd # chkconfighttpdo
After the installation of coreora Core8 is complete, you must use yum to update and add the yum update source. the update that comes with the system is extremely slow and impossible.The follo
system client.
We need to install the Apache network server and APT-Mirror to start our work. The steps for configuring a working local software repository are as follows:1. Install the required software package
We need to get all the software packages from the public software package warehouse of Ubuntu, and then save them in our local Ubuntu server hard disk.
First, install a Web server to host our
PHP should be a lot to understand Linux, ask a question, local development, how to only the last day of the modified files to sync to the server?
Because the previous time has done a synchronization, a lot of files, so it is impossible or the whole upload again, just want to copy the file modification times on the line, I hope to use the Linux shell programming to achieve, but not familiar with Shell programming, do not know there will be?
------Solu
save them in our local Ubuntu Server hard disk.First, install a Web server to host our local software repository. Here we will install the Apache Web server, but you can install any of your favorite Web servers. For http, Web servers are required. If you need to configure the ftp protocol and rsync protocol, you can also separately install the FTP server, such a
1, can local variables and global variable duplicate?
A: Yes, the local will screen the overall situation. To use a global variable, you need to use the "::"
Local variables can have the same name as global variables, and when referenced within a function, local variables with the same name are used instead of global
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.