Replace tomcat port using sed command
I want to replace the tomcat default port number from 8080 to 80 by using the sed command. Please check the below command which I have used.
command => "sed -i 's|<Connector port="8080"|<Connector port="80"|g' /usr/share/comcat6/server.xml",
The above command is not working due to the double quotes present in the port number "8080". Please help me to resolve the issue.