Download Apache Project http://mirror.bit.edu.cn/apache/
Download CentOS 7 installation disk ISO approx. 7G
Installing CENTOS7
Packages Repodata to hard disk in the Copy CD disk
Set up httpd service to modify the Docmentroot in/etc/httpd/conf/httpd.conf??
Service httpd start.
If you have SELinux note semanage chcon restorecon command to keep the context consistent with/var/www, use ls-z to view
After the Web site is established
Write the files in the/ETC/YUM.REPO.D,
Test yum command: Yum clean all; Yum Makecache
If you have a new RPM, you can also put it in the package directory but use Createrepo to re-establish the index database
Download Docker 1.9
Installing with RPM
Test Service Docker Start
To csphere download Install analysis install sh (find a CentOS virtual machine installed on the internet then use Docker save;d ocker load to Enterprise local) main management Docker convenient
Use a script on the web to build the Docker image https://raw.githubusercontent.com/docker/docker/master/contrib/mkimage-yum.sh for CentOS
Named CentOS
Based on CentOS, establish Jdk8 sshd named Jdk8:centos7
fromCENTOS7:7.2.1511Add JDK-8u65-linux-x64.gz/usr/sbinenv Java_home/usr/sbin/jdk1.8. 0_65env CLASSPATH/usr/sbin/jdk1.8.0_65/lib/dt.jar:/usr/sbin/jdk1.8.0_65/lib/Tool.jarrun Echo"java_home= $JAVA _home;export java_home;">>/etc/Profilerun Echo"classpath= $CLASSPATH: $JAVA _home;export CLASSPATH;">>/etc/Profilerun Echo"path= $PATH: $JAVA _home/bin;export PATH;">>/etc/Profilerun Echo"path= $PATH: $JAVA _home/bin;export PATH;">>/etc/Bashrcrun RM-f/etc/yum.repos.d/cent*Add Yum.repo/etc/yum.repos.drun systemctl Enable Sshd.servicerun/USR/LIB/SYSTEMD/SYSTEMD--system &Run Yum-y install which OpenSSL sshd wget net-tools openssh-client openssh-serverrun ssh-keygen-t dsa-f/etc/ssh/ssh_host_dsa_key-n""Run SSH-keygen-t rsa-f/etc/ssh/ssh_host_rsa_key-n""Run SSH-keygen-t ecdsa-f/etc/ssh/ssh_host_ecdsa_key-n""Run SSH-keygen-t ed25519-f/etc/ssh/ssh_host_ed25519_key-n""Run/usr/sbin/sshd run echo Root| passwd Root--stdin run Yum Makecache&&yum clean allrun ssh-keygen-t rsa-f ~/.ssh/id_rsa-n""; Cat ~/.ssh/id_rsa.pub >>~/.ssh/Authorized_keysrun Echo"stricthostkeychecking No">>~/.ssh/Configentrypoint/usr/sbin/sshd;/bin/Bash
[Local]name=localbaseurl=http://Xxx.xxx/yumenable=1Gpgcheck =0
Yum.repo
Build hadoop2.6 based on JDK8:CENTOS7
fromjdk8:centos7 Add Hadoop-2.6.2. tar.gz/home/Run LN-s/home/hadoop-2.6.2//home/hadoop && cd/home/Hadoopworkdir/home/Hadoopexpose A 50070Copy etc/home/hadoop/etc/Hadoop Run Echo"export path= $PATH: $JAVA _home/bin:/home/hadoop/sbin:/home/hadoop/bin;">>/etc/Profilerun Echo"export path= $PATH: $JAVA _home/bin:/home/hadoop/sbin:/home/hadoop/bin;">>/etc/bashrcrun systemctl Enable Sshd.servicerun/USR/LIB/SYSTEMD/SYSTEMD--system © Hadoop-config.sh/home/hadoop/Libexecentrypoint/usr/sbin/sshd;/bin/Bash
Test single-node Hadoop can start (Java not found, manually modify the/libexec in the hadoop-config.sh)
Start-dfs.sh start-yarn.sh
Install Docker Hadoop outlines from scratch within the enterprise