Java Notes---Errors in the use of cloud services

Source: Internet
Author: User
Tags filezilla
First, redirectting to/bin/systemctl restart Nginx.service

Occurrence scene

After installing the software using the Yum Install command (yum install nginx) under root user privileges, run the service Nginx restart to start the Nginx services

Cause of error

/bin/systemctl:no such file or directory. There is no such file or directory. Specifically, the service command is not found. The current system is using CenOs7.1, it seems that there is a great change in the version, in bash, we hit the service command, we can find no auto-completion.

Error resolution

After changing the system to CenOs6.5, it is no problem to start nginx. Full service can be automatically mended.

Second, serious file transfer error

Occurrence scene

Drag test.html from the local site to the remote site s/usr/share/nginx/html directly in the FileZilla

Cause of error

Insufficient permissions

Error resolution

Add permissions or do not drag directly under/usr/share/nginx/html, but place them under the user folder under FTP settings, and then use the CP or MV command to move the files to the target folder

Third, attempt to connect failed Econnrefused-connection refused by server

Occurrence scene

Using FileZilla to transfer files to a remote server

Cause of error

The server did not start the FTP service

Error resolution

Start the FTP service on the remote server. It's best to let it start, execute the command chkconfig vsftpd on

Iv./usr/local/tomcat8/bin/catalina.sh:line 453:/usr/lib/jvm/java-1.8.0xxx/bin/java:no such file or directory.

Occurrence scene

After you install Tomcat, execute the command bin/shutdown.sh stop the Tomcat service.

Cause of error

According to the error view directory, found that the file.

When you finally view catalina.sh, you find that you have not modified the/usr/local/tomcat8/bin/catalina.sh, and you have not configured the Java-home variable in the file. So that Tomcat could not find the JDK.

Error resolution

Modify/usr/local/tomcat8/bin/catalina.sh, add java-home variable in line 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); }); });

    The above describes the Java note---the Use of cloud services error, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.