1. 安装jdk

方法一:利用yum源来安装jdk(此方法不需要配置环境变量)
查看yum库中的java安装包 :yum -y list java
安装需要的jdk版本的所有java程序:yum -y install java-1.8.0-openjdk
(安装完之后,默认的安装目录是在: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64)

2. 安装nginx

[root@localhost ~]# yum -y instal nginx //安装nginx

[root@localhost ~]# service nginx start //启动nginx

[root@localhost ~]# service nginx stop //停止nginx

[root@localhost ~]# service nginx reload //重载nginx

[root@localhost ~]# ps -ef | grep nginx //查看进程apache/httpd

[root@localhost ~]# netstat -anpl | grep ‘nginx’ //查看服务端口

[root@localhost ~]# rpm -Uvh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.18.0-1.el7.ngx.x86_64.rpm // rpm方式升级并安装某个版本的Nginx

3. 安装jenkins

https://www.cnblogs.com/sky-cheng/p/14912908.html

4. 开始部署

https://www.bilibili.com/video/BV16a4y1p7BL?p=7&spm_id_from=333.1007.top_right_bar_window_history.content.click