少个进程同时工作,默认5个进程并行处理。具体需要设置多少个,可以根据控制端性能和被管理节点的数量来确定。sudo_user:设置默认执行命令的用户,也可以在playbook中重新设置这个参数。remote_port:指定连接被管理节点的管理端口,默认是22,除非设置了特殊的SSH端口,否则不需要修改此参数。host_key_checking:设置是否检查SSH主机的密钥。可以设置为True或False。即ssh的主机再次验证。timeout:设置SSH连接的超时间隔,单位是秒。log_path:Ansible默认不记录日志,如果想把Ansible系统的输出记录到日志文件中,需要设置log_path。需要注意,模块将会调用被管节点的(r)syslog来记录,执行Ansible的用户需要有写入日志的权限。Ansible InstallationConfiguring the source for installation 163 [[emailprotected] ~]# cd/etc/yum.repos.d///Creating a backup directory [[emailpro
installed.
Ii. Download source code
Now we have prepared the environment required for android source code development (no error). The process of downloading the source code is very huge because the Android source code needs to be obtained in two parts: Android source code and kernel. I don't need the source code of the kernel for the time being, so here I only download the source code.
1. Create a new folder to store the Android directory and initialize the
This article describes the idea of using GitHub as a MAVEN repository primarily:
Create Mvn-repo branch on GitHub project, use Mvn-repo branch as Maven repository
Configure Pom.xml to use Target/mvn-repo as a temporary MAVEN repository for on-premises deployment
Use GitHub Site-maven-plugin at deployment to push the local MAVEN repository to the
install
Input: sudo apt-Get install openjdk-6-jre-headless, installation is OK, and then view the version:
Wayne @ Ubuntu :~ $ Java-version
Java version "1.6.0 _ 22"
Openjdk Runtime Environment (icedtea6 1.10.2) (6b22-1.10.2-0ubuntu1 ~ 11.04.1)
Openjdk server VM (build 0-b11, mixed mode)
JDK is installed.
Ii. Download source code
Now we have prepared the environment required for Android source code development (no error). The process of downloading the source code is very huge
The previous Code has constructed an android source code library locally. Let's take a look at how the source code library is constructed.
All of this is based on the construction tool named repo. Go back to the initial command $ curl http://android.git.kernel.org/repo> ~ /Bin/RepoThis command downloads a script named repo from the website. It is actually a Pyth
Download Android source code
When downloading the android source code for the first time, you will inevitably encounter some small issues, such as so.
If the English is good, you can directly look at this: http://source.android.com/source/downloading.html1. Create a folder for your source code:
$ mkdir ~/bin$ PATH=~/bin:$PATH
Ii. Download tool repo
$ curl http://commondatastorage.googleapis.com/git-repo-
Repo Init-u ssh://[email protected]: 29419/manifest - m K86a.xmlUse the-m parameter to specify that the K86A.MXL file is used specificallyStep 1. Curl Http://gerrit.y/repo > RepoInstall repo to update the Android source code. Download the repo script, repo is an android-to-g
Divided into 4 processes
SOURCE download
Building a compilation environment
Compiling source code
Run
Source download install git and configure//安装gitsudo apt-get install git//配置git名称和邮箱git config --global user.name "your name"git config --global user.email "[emailprotected]"Create a repo bin directory and source directory
Create a bin directory for repomidir ~/bin
Create source Directorymidir ~/sou
folder (local directory name, optional, default current directory)//view index.html current version and version 3 of the difference SVN diff/di–revision/r 3 index.html//view index.html version 3 and version 4 difference svn diff/di–revision/r 3:4 index.html
Generally this time, there is no special situation, directly into the "submit" phase, and then end a working day or work cycle, but there will be some special circumstances.
Cancel Modification
When your code review and you find some chan
The software source information files (*. repo) of Fedora are stored in the/etc/yum. Repos. d directory. You can use # ls-L/etc/yum. repos. d. Check that the default software sources are all foreign and the network speed may not be fast. We can add the domestic software sources and local software sources by ourselves.
1. Add domestic software sources# Cd/etc/yum. Repos. D # wget http://mirrors.163.com/.help/fedora-163.
obtained in two parts: Android source code and kernel. I don't need the source code of the kernel for the time being, so here I only download the source code.
1. Create a new folder to store the android directory and initialize the repo:
wayne@ubuntu:~$ mkdir Androidwayne@ubuntu:~$ cd Androidwayne@ubuntu:~/Android$ mkdir binwayne@ubuntu:~/Android$ cd binwayne@ubuntu:~/Android/bin$ curl https://dl-ssl.google.com/dl/googlesource/git-
Install salt-minion, rehl5salt-minion on REHL5Install salt-minion ON REHL5
This article applies to rhel5.4, 6.4, and. el5.4 is used as an example.1 online installation is extremely simple:
# wget --no-check-certificate -O install_salt.sh https://bootstrap.saltstack.com# sh install_salt.sh -I
The above applies to el5, el6, el7, and other versions. You can find a bunch of repo under/etc/yum. repos. d/and save the following:
epel.repoepel-testing.repo
: $PATHDownload repo$ Curl Https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo$ chmod a+x ~/bin/repoDue to the domestic wall, Google may not be able to download, it is recommended to use Tsinghua AOSP source download:git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/Copy to the bin director
number of simultaneous open files. Open the. Bash_profile, and add the following code to the file.# Set the number of open files to be 1024x768ulimit-s-NThe third step, download the original fileIn this step, except the 1th dot, is the first call outside (to ensure that the ~/bin folder exists), the other steps in each download source code, need to call, and then call.1, install repo software (first use, perform this step)$ mkdir ~/bin$ Curl Https://
Linux distributions use package management commands such as Apt-get, dpkg, RPM, Yum,emerge, and so on. In this paper, the Yum tool is researched and collated.1. About Yum1.1 What ' s Yum
The Yum command is a RPM-based package manager in Fedora and Redhat as well as in SuSE.
It allows system administrators to interactively and automatically manage RPM packages,
The ability to automatically download RPM packages and install them from the specified server,
Dependency relati
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.