1.运维提供一台机器,比如:192.168.7.111
安装brew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.
安装brew 用ruby
Please delete these paths and run `brew update`.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
3.安装wget
brew install wget
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl
==> Installing wget dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.20.1.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/10/10dd5c2b9c6613b5310f95931d7233a8b7947c541433fcc58
########################### 38.4%
4.拉初始环境配置:
wget 192.168.1.60:8081/tomcat_install.tar.gz
安装 rz wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
解压 tar xzvf tomcat_install01.tar.gz
cd /usr/local/tomcat_install01
报错原因软链地址错误:
rm -rf ./java
5.安装yum
brew install yum
yum install -y lrzsz(在没有yum的时候尤其是ubuntu系统可以考虑 apt install -y lrzsz)
进入 /etc/init.d 启动restart_tomcat.sh start
6.将文件的执行权限赋予root 权限
chown -R root.root /Webapp/*
6.启动报错:
Error: Password file not found: /Webapp/program/java/jre/lib/management/jmxremote.password
添加软链:
ln -s /usr/local/jdk1.8.0_40 java
7.jenkins 发布文件报错,提示没有权限
在jenkins 服务器中root cd.ssh 中将id_rsa.pub 中的内容,拷贝到:应用服务器中cd /root/.ssh 中的authorized_keys 注意空格