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>