

# DO NOT EDIT - CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties # comment out this vmoption when using Java9+Ĭonfigure application-host as follows ~]# cat $NEXUS_HOME/etc/nexus-default.properties # -add-exports=java.base/sun.net.# -add-exports=java.base/sun.net.# -add-exports=java.base/sun.net.# -add-exports=/=ALL-UNNAMED # -add-opens=java.base/java.util=ALL-UNNAMED # -add-opens=java.base/java.lang=ALL-UNNAMED

# -add-opens=java.base/curity=ALL-UNNAMED # -patch-module=java.xml=lib/endorsed/.java.xml-4.2.9.jar # -patch-module=java.base=lib/endorsed/.locator-4.2.9.jar # -add-exports=java.base/.locator=java.xml,ALL-UNNAMED Djava.io.tmpdir=/Data/nexus-data/nexus3/tmp XX:LogFile=/Data/nexus-data/nexus3/log/jvm.log Tar xvfz /tmp/ -C /opt/nexus -strip-components 1Ĭhown -R nexus:nexus /Data/nexus-data Configure environment for Nexus repository OSS on CentOS 7 # Setting up the default JDKĮxport JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.7_8.x86_64Ĭhange Nexus default values as follows ~]# cat $NEXUS_HOME/bin/nexus.vmoptions SELINUXTYPE=targeted Install Nexus Repository OSS on Centos 7 # Creating necessory folder structure # minimum - Modification of targeted policy. # targeted - Targeted processes are protected, # SELINUXTYPE= can take one of three values:

# disabled - No SELinux policy is loaded.

# permissive - SELinux prints warnings instead of enforcing. # enforcing - SELinux security policy is enforced. # SELINUX= can take one of these three values: # This file controls the state of SELinux on the system. Yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-develĭisable SELinux on Centos as follows ~]# cat /etc/sysconfig/selinux Prerequisites yum install -y epel-release unzip vim wget net-tools
