Java note --- error in cloud service usage

Source: Internet
Author: User
: 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.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.