: This article mainly introduces Java notes-errors in cloud service usage. if you are interested in PHP tutorials, please refer to them. 1. Redirectting to/bin/systemctl restart nginx. service
Scenario
Run the yum install command (yum install nginx) to install the software, and then run service nginx restart to start the nginx service.
Error cause
/Bin/systemctl: no such file or directory. this file or directory does not exist. Specifically, the service command is not found. The current system uses CenOs7.1, which seems to have changed a lot in this version. in bash, we hit the service Command, and we can find that there is no auto-completion.
Troubleshooting
After the system is changed to CenOs6.5, it is okay to start nginx. You can automatically complete the service.
II. serious file transfer errors
Scenario
Drag test.html from the local site in FileZilla to enter the remote site s/usr/share/nginx/html
Error cause
Insufficient permissions
Troubleshooting
Add permissions or not directly drag them to/usr/share/nginx/html, but put them in the user folder when FTP is set, and then use the cp or mv command to move the file to the target folder.
III. failed to connect ECONNREFUSED-Connection refused by server
Scenario
Use FileZilla to transfer files to a remote server
Error cause
The ftp service is not started on the server.
Troubleshooting
Start the ftp service on the remote server. It is best to enable the system to start automatically and execute the command chkconfig vsftpd on.
4./usr/local/tomcat8/bin/catalina. sh: line 453:/usr/lib/jvm/java-1.8.0xxx/bin/java: No such file or directory.
Scenario
After Tomcat is installed, run the command bin/shutdown. sh to stop the Tomcat service.
Error cause
View the directory according to the error message and find that the file exists.
When viewing catalina. sh, it was found that/usr/local/tomcat8/bin/catalina. sh was not modified, and the JAVA-HOME variable was not configured in the file. So that Tomcat cannot find JDK.
Troubleshooting
Modify/usr/local/tomcat8/bin/catalina. sh and add the JAVA-HOME variable in row 46.
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the Java notes-errors in the use of cloud services, including some content, hope to be helpful to friends who are interested in PHP tutorials.