Install mongodb:
1.create a /etc/yum.repos.d/mongodb-org-2.6.repo
[mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=
gpgcheck=0
enabled=1
3.sudo yum install -y mongodb-org
install nginx:
1.wget
2.tar -zxvf nginx-1.5.9.tar.gz
3../configure --prefix=/usr/local/nginx
4.yum -y install pcre-devel
5.yum -y install openssl openssl-devel
/usr/local/nginx/sbin/nginx -t
install zeromq(through wget)
36 wget
37 mv zeromq-4.0.3.tar.gz /home/
38 cd /home/
39 ll
40 tar zxvf zeromq-4.0.3.tar.gz
41 cd zeromq-4.0.3
42 ll
43 ./configure
44 make && make install
45 cd /dash-nba/
46 npm install
下载setuptools包
shell# wget
解压setuptools包
shell# tar zxvf setuptools-0.6c11.tar.gz
shell# cd setuptools-0.6c11
编译setuptools
shell# python setup.py build
开始执行setuptools安装
shell# python setup.py install
wget "" --no-check-certificate
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
# pip install SomePackage
python 使用pip install package error:
error: command 'gcc' failed with exit status 1: yum install python-devel
yum install libxslt-devel
yum install libudev-devel
overall:
yum install gcc gcc-c++ make libtool patch automake libxslt-devel openssl-devel kernel-devel libudev-devel wget
pip install selenium
pip install robotframework-sshlibrary
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
yum install freetype-devel
umpy.distutils.system_info.NotFoundError: no lapack/blas resources found:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm
wget
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm
sudo yum localinstall *.rpm
sudo pip install scipy
or use yum install:
yum install lapack, blas, lapack-devel, blas-devel
yum install *png*
yum install zlib*
pip install pylab need following pkg:
numpy, pandas, tornado,matplotlib,seaborn,pytz,networkx,scikit-learn,scikit-image,ipython,pyzmq,sympy,jinja2,jsonschema,pillow,scipy,
Docker linuxDriverNode
FROM centos:centos6
MAINTAINER Fanbin Kong "kongxx@hotmail.com"
RUN yum install -y openssh-server sudo
RUN sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
RUN mkdir -p /root/.ssh && chown root.root /root && chmod 700 /root/.ssh
RUN echo "root:P@ssw0rd" | chpasswd
RUN echo "root ALL=(ALL) ALL" >> /etc/sudoers
RUN sed -i 's/Defaults requiretty/Defaults !requiretty/g' /etc/sudoers
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
RUN mkdir /var/run/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
#RUN yum install tty -y
#RUN yum install gcc -y
RUN yum install gcc gcc-c++ make libtool patch automake libxslt-devel openssl-devel kernel-devel libudev-devel wget tar python-devel gettext -y
#RUN yum install wget -y
#RUN yum install tar -y
#RUN yum install gettext -y
#RUN yum install libxslt-devel -y
#RUN yum install libudev-devel -y
#RUN yum install python-devel -y
#RUN wget
RUN wget
RUN tar -zxvf /setuptools-0.6c11.tar.gz
WORKDIR /setuptools-0.6c11
RUN python setup.py build
RUN python setup.py install
WORKDIR /
RUN wget "" --no-check-certificate
RUN tar -zxvf /pip-1.5.4.tar.gz
WORKDIR /pip-1.5.4
RUN python setup.py install
RUN pip install pycrypto
RUN pip install decorator
RUN pip install httplib2
RUN pip install paramiko
RUN pip install robotframework
RUN pip install robotframework-selenium2library
RUN pip install robotframework-sshlibrary
RUN pip install scpclient
RUN pip install selenium
RUN pip install colorama
RUN pip install termcolor
RUN pip install pyfiglet
robot framework:
1./usr/lib/python2.7/site-packages/robot/run.py =>run_cli(sys.argv[1:])robot入口函数
2./usr/lib/python2.7/site-packages/robot/util/application.py =>def execute_cli(self, cli_arguments)
run.py(run_cli(sys.argv[1:]))=>run.py(RobotFramework().execute_cli(arguments))=>application.py(execute_cli(self, cli_arguments))=>application.py( self._parse_arguments(cli_arguments))=>
application.py(_execute(arguments, options))=>run.py(main(self, datasources, **options))
阅读(1971) | 评论(0) | 转发(0) |