If you have configured jenkins on ec2 instance with linux AMI and looking to change the port. Edit the file at
sudo vi /etc/sysconfig/jenkins
Edit
JENKINS_PORT="your port number"
Exit vim
:wq
Restart jenkins
sudo service jenkins restart
Or simply start it, if its not already running
sudo service jenkins start
To verify if your jenkins is running on mentioned port
netstat -lntu | grep "your port number"