阿里雲Centos7 通過Docker安裝maven私服nexus3

1、準備工作

Centos 7
docker

2、介紹

不囉嗦了,直接開始幹。

3、安裝nexus

  • 創建數據存放目錄
mkdir -p /data/nexus/data
  • 修改數據目錄的權限
chmod 777 -R /data/nexus/data
  • 拉取和啓動一步到位
docker run -d -p 8081:8081 --name nexus -v /data/nexus/data:/nexus-data sonatype/nexus3

查看啓動詳情:

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5000000, 419430400, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 419430400 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/sonatype/nexus/hs_err_pid1.log
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5000000, 419430400, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 419430400 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid1.log

完了,發生錯誤了,錯誤信息如下:
我先處理去。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章