Several minor problems with configuring the Nexus private server

Source: Internet
Author: User

When installing and configuring the Nexus private server today, I encountered several minor problems:

1.Cannot start.

It automatically exits when it is started through./nexus start. You can view the logs and PID files on the./nexus console. The official nexus documentation is recommended to be installed under/usr/local, and it is not recommended to start with the root account. However, if the directory is installed under/usr/local, the root permission is required for operations on some directories.We recommend that you decompress the package to a directory named nexus, which exists in a path that the current account can have full permissions on.

2. Access fails after Proxy Redirection is configured through Apache. View Apache error_log with a similar error:

[error] (13)Permission denied: proxy: HTTP: attempt to connect to 127.0.0.1:8081 (localhost) failed[error] ap_proxy_connect_backend disabling worker for (localhost)

You can solve the problem by running the following command:

echo 0 >/selinux/enforce

Then restart Apache.

3. When accessing repository in the repositories list, the following error occurs: There was an error communicating with the server: Request timed out nexus. This is caused by the proxy configuration. Add the following statement: proxypreservehost on. Then, all the proxy configurations will look like:

<IfModule mod_proxy.c>    ProxyPass /nexus http://localhost:8081/nexus    ProxyPassReverse /nexus http://localhost:8081/nexus    ProxyPreserveHost On</IfModule>

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.