The best in the whole network, interface automation-Linux system installation Jenkins+Ant detailed steps


foreword

Install Jenkins on a Linux system

1. Download Jenkins to the Linux server
to view the kernel version information: cat /proc/version

uname -m
cat /proc/version

B1

Download address: https://www.jenkins.io/doc/book/installing/undefined

Select Jenkins version on demand

B2

Here select the weekly version, download and install it using shyongyum

Note: Before using wget, you must first use yum to install wget: yum -y install wget, otherwise an error will be reported: command not found!

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

B3

sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins

B4

When you see the jenkins version and the word complete, the installation is complete!

Next, configure the jenkins port: vi /etc/sysconfig/jenkins
Modify JENKINS_PORT="8080", the default is "8080"
View the port number currently being used by the server: netstat -ntulp |grep 80

B5

Port 80 is not occupied, so here Jenkins uses the default port number 8080

3. Start Jenkins

service jenkins restart

The failure to start is the reason for the jdk configuration.
Modify the jdk configuration

vi  /etc/init.d/jenkins

Enter the path of jdk installation on Linux (/usr/java/jdk1.8.0_131/bin/java)

B6

Then it can be started: service jenkins restart
can access Jenkins by entering the IP+port number in the browser.

4. Configure Jenkins
to open Jenkins for the first time and need to unlock

B7

Wait for the plugin installation to complete

On the instance configuration page, click "Don't now" to enter the ready page, click "Start using Jenkins"

B8

At this point, Jenkins has been installed!

Install and configure ant environment on Linux system

1. Download the tar.gz version of ant from the official website http://ant.apache.org/bindownload.cgi to the local computer

B222

B9

2. Upload the ant compressed package on the local computer to the /usr directory of the Linux server through the WinSCP tool

B10

3. Unzip the ant compressed package

tar -vxzf apahce-ant-1.10.6-bin.tar.gz

B11

4. Modify permissions

chmod 777  apache-ant-1.10.6

B12

5. Modify system environment variables

vi /etc/profile

B13

Add the ant environment variable at the end of the file, enter: wq! Save the modification

6. Make environment variables take effect

source /etc/proifle 

7. Test whether ant is effective

ant -version

B14

At this point, the ant configuration is complete!

The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled

1. From entry to mastery of Python programming

Please add a picture description

2. Interface automation project actual combat

Please add a picture description

3. Actual Combat of Web Automation Project

Please add a picture description

4. Actual Combat of App Automation Project

Please add a picture description

5. Resume of first-tier manufacturers

Please add a picture description

6. Test and develop DevOps system

Please add a picture description

7. Commonly used automated testing tools

Please add a picture description

Eight, JMeter performance test

Please add a picture description

9. Summary (little surprise at the end)

Stick to the original intention, and the dream illuminates the way forward. Sweat nourishes the flowers of struggle, and strives to create a brilliant life. Regardless of wind and rain and difficulties, persist in pursuit, bravely forge ahead, and write your own magnificent chapter with the power of hard work.

With faith in mind, striving to pursue, every step is steadfast and determined. Difficulty is a gift of tempering, and struggle is a stage for growth. Facing challenges bravely, flying the wings of dreams, and creating your own brilliant life in the struggle.

Burn the passion in your heart and strive to light up the stars in your life. Persevere, go forward bravely, every effort creates the strength of growth. No matter how many setbacks you encounter, stick to your beliefs, chase your dreams, and believe in yourself, you will surely be able to create your own brilliance and success.

Guess you like

Origin blog.csdn.net/m0_70102063/article/details/132187851