Is there a way to disconnect eth0 (wired connection) for just until I reboot? Or even a way to just bring it down then up again before I shut the computer down? I want to do this because sometimes I want to be on Wi-Fi and when the signal gets low, it hops back to eth0, even if I manually disconn...
I need to setup a static IP for eth0, my server has multiple network interfaces and I don't want to bring any of them, except for eth0 down.
I found lot of guides like https://www.howtoforge.com/linux-basics-set-a-static-ip-on-centos but all of them ends with "now restart networking" or "now reb...
I thought it would be a nice idea if we could have a question thread where everyone posts an answer where they introduce themselves, talk about themselves a little bit, and tell the community their motivation for participating on this site (unix.stackexchange.com).
Some SE sites don't have much ...
I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully unstalled apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web browser on another computer in the network. But I am getting the following error message when I ty...
that could be a stumbling block, if tomcat can't find java. last I knew, there was a tomcat startup script; have you tried starting it manually, outside of systemd? I would get that working before trying systemd.
/opt/tomcat/bin/startup.sh looks like it might be the startup script I'm thinking of, although I thought it was called catalina.sh; anyway, it should be setting its own java-type variables and starting on its own.
[user@localhost tomcat]$ sudo /opt/tomcat/bin/startup.sh Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: / Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar Tomcat started. [user@localhost tomcat]$
@JeffSchaller The essence of the tomcat logs is permission denied stuff when tomcat is turned off and i try to use systemctl. sorry for the delay, but the logs from the failed login are long and it took a while to cut and paste;
java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /opt/tomcat/logs/catalina.2015-10-13.log (Permission denied) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at org.apache.juli.FileHandler.openWriter(FileHandler.java:384) at org.apache.juli.FileHandler.<init>(FileHandler.java:96) at org.apache.juli.AsyncFileHandler.<init>(AsyncFileHandler.java:71) at org.apache.juli.AsyncFileHandler.<init>(AsyncFileHandler.java:67)
i will do what you suggested now. but here is what i just did. for kicks, i opened port 8080 in firewalld then typed cm.ip.addr;8080 in the browser from a different computer on the network, and it gave me:
HTTP Status 500 - java.lang.IllegalStateException: No output folder
type Exception report
message java.lang.IllegalStateException: No output folder
description The server encountered an internal error that prevented it from fulfilling this request.
org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:591) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
@derobert part of that Q asks "Could anybody help me with understanding what do I have to do?" which reminds me of a phrase I heard recently: "I can explain it for you, but I cannot understand it for you"
@JeffSchaller Hah, yeah. I tried in a comment there. But it sounds like a homework assignment, which would hopefully mean there is a teacher who can spend some time actually explaining it, in person, answering questions, etc... That teacher would have a much better time at it than we do.
i put a war in /opt/tomcat/webapps, but when i type the ip of the vm in the browser of another computer on the network, i get a 404, then i refresh and get a 500. then i refresh and get a 404. and so on as the cycle repeats
13-Oct-2015 12:41:13.150 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"] java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340)
address already in use/failed-to-connect. or permission denied, depending on the circumstances.
i could resort to installing tomcat as root, and bypassing systemd altogether. that would work. i guess i am reaching out for a more elegant linux approach without the security risk of running it as root.
@JeffSchaller Yes. I typed systemctl stop tomcat.service and got no error. then i typed /opt/tomcat/bin/shutdown.sh and got an error indicating it was already shut down. then i typed /opt/tomcat/startup.sh and got a startup success message. then i typed the server ip address:8080 in browser from a different computer on the network and got the tomcat manager app homepage. ...
i did all this as root.
i was reaching out to avoid having to resort to running tomcat as root.
ok. so, the instructions in the op set tomcat so no one can log in as tomcat, and we need sudo to start and stop tomcat, then how does tomcat work? is the tomcat program itself like an AI artifificial user?
Thank you. I have read about that, but this exercise of building another server is another chance to see it. I think the question is answered. Thank you very much. If you feel like writing up an answer, I would be happy to mark it accepted and +1. a couple additional steps were required in addition to what the other person wrote in their answer.
I am in virsh. When I type list --all, four virtual machines are listed. when I type shutdown vm-name, the response is a message saying that vm-name is being shut down. but then even 20 minutes later, the results of list --all are the same, showing all four virtual machines running. i am googling this, but the solution is not clear. does anyone know a fast way to kill a vm is shutdown does not work?
rebooting the physical serverbox shut them all down. but that is not a complete solution.