# Terminal > sudo vim /etc/default/jenkins 에서 HTTP_PORT=9090 으로 설정
--------------
e.g)
## port for HTTP connector (default 8080; disable with -1)
HTTP_PORT=9090
--------------
2. port 변경 두번째 방법 (8080 > 9090)
# 위 처럼 변경 에러시, 아래 방법 실행
## 1. jenkins.service 권한 변경
sudo chmod 777 /usr/lib/systemd/system/jenkins.service
## 2. jenkins.service에 접속하여 Environment="JENKINS_PORT={원하는 포트}" 수정
Terminal> sudo vim /usr/lib/systemd/system/jenkins.service
--------------
e.g)
# Port to listen on for HTTP requests. Set to -1 to disable.
# To be able to listen on privileged ports (port numbers less than 1024),
# add the CAP_NET_BIND_SERVICE capability to the AmbientCapabilities
# directive below.
Environment="JENKINS_PORT=9090"
--------------
## 3. jenkins.service 권한 재변경
sudo chmod 444 /usr/lib/systemd/system/jenkins.service