jenkins
sudo nmtui
yum -y install net-tools
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo firewall-cmd --state
yum -y update
yum -y install java-11-openjdk-devel
yum -y install git
yum -y install ant
yum -y install unzip
sudo groupadd -r wildfly
useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly
下載 wildfly 到 /opt/source/ 目錄下
cd /opt/source/
unzip wildfly.zip
mv wildfly-26.1.1.Final /opt
sudo ln -s /opt/wildfly-26.1.1.Final/ /opt/wildfly
sudo chown -RH wildfly: /opt/wildfly
sudo mkdir -p /etc/wildfly
cd /opt/wildfly/docs/contrib/scripts/systemd
cp wildfly.conf /etc/wildfly/
cp launch.sh /opt/wildfly/bin/
sudo sh -c 'chmod +x /opt/wildfly/bin/*.sh'
cd /opt
chown -R wildfly.wildfly wildfly
chown -R wildfly.wildfly /opt/wildfly-26.1.1.Final/
cd /opt/wildfly/docs/contrib/scripts/systemd
cp wildfly.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start wildfly
sudo systemctl enable wildfly
sudo systemctl status wildfly
vi standalone.xml
把三個 127.0.0.1 改為 0.0.0.0
sudo /opt/wildfly/bin/add-user.sh
(a): a
Username : mpap
Password :
Re-enter Password :
Is this correct yes/no? yes
(要改 standalone.xml 裡的 127.0.0.1 為 0.0.0.0, 否則連不進去)
https://172.16.21.33:9990
vi /etc/wildfly/wildfly.conf
加入以下內容:
WILDFLY_CONSOLE_BIND=0.0.0.0
E-mail Notification
smtp.gmail.com
Use SMTP Authentication
獨立安裝:
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins
sudo systemctl start jenkins
sudo systemctl enable jenkins
systemctl status jenkins