java系统找不到指定文件怎么解决
273
2022-10-24
centos7 ssh dockerfile
centos7 ssh dockerfile FROM centos:centos7.7.1908ENV PATH $PATH:/usr/local/mysql/bin/ RUN yum -y install wget RUN rm -rf /etc/yum.repos.d/* RUN cd /etc/yum.repos.d/ \ && wget \ && wget yum clean allRUN yum install -y openssh-server bind-utils sysstat telnet net-tools glibc-common gcc automake autoconf libtool make gcc-c++ unzip libaio-devel numactl vim openssh* RUN sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/g' /etc/ssh/sshd_configRUN sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config RUN echo '123456' | passwd --stdin rootRUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key COPY mysql /usr/local/mysqlADD my.cnf /etc/ RUN mkdir -p /data/mysql/mysql3306/{data,logs,temp} \ && groupadd mysql \ && useradd -g mysql -s /sbin/nologin -d /usr/local/mysql -MN mysql \ && echo "PATH=$PATH:/usr/local/mysql/bin/" >>/etc/profile \ && chown -R mysql.mysql /data/mysql RUN chown -R mysql.mysql /usr/local/mysql # ------------------------------------------------------------------------------ADD localtime /etc/localtime RUN mkdir /var/run/sshd WORKDIR /root/ EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] docker run -d --name master -h master centos7-ssh-test docker run -d --name slave1 -h slave1 centos7-ssh-test docker run -d --name slave2 -h slave2 centos7-ssh-test docker run -d --name slave3 -h slave3 centos7-ssh-test docker run -d --name proxysql -h proxysql --privileged centos7-ssh-test /usr/sbin/init
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~