- 首先把我们的NC安装盘传到服务器,把安装盘进行解压
[root@nccapp01 ncc]# unzip NCCloud1909.zip [root@nccapp01 ncc]# ll 总用量 5108524 -rw-r--r-- 1 root root 5231121050 5月 25 19:36 NCCloud1909.zip drwxr-xr-x 6 root root 197 8月 22 2018 ufjdk drwxr-xr-x 30 root root 4096 11月 18 2019 yonyou_nccloud --授权 [root@nccapp01 ncc]# chmod -R 755 yonyou_nccloud/
- 配置java环境变量
#永久设置Java变量 [root@nccapp01 opt]# vi /etc/profile --在文件最后增加 export JAVA_HOME=/opt/java/8.0 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=/${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH #使参数生效 [root@nccapp01 opt]# source /etc/profile
- 系统参数调整(否则启动服务会报错 Too many open files)
修改主机名为nccapp01 [root@nccapp01 ~]# hostnamectl set-hostname nccapp01 [root@nccapp01 ~]# vim /etc/security/limits.conf --在文件末尾增加如下参数 root soft nproc 65535 root hard nproc 65535 root soft nofile 65535 root hard nofile 65535 --退出用户,再次登陆生效 --检查是否修改完成 [root@nccapp01 ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 3766 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65535 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 65535 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
- 部署依赖包安装
[root@nccapp01 ~]# yum install libXrender [root@nccapp01 ~]# yum install libXft [root@nccapp01 ~]# yum install libXtst [root@nccapp01 ~]# yum install xorg-x11-xauth [root@nccapp01 ~]# yum install kde-l10n-Chinese [root@nccapp01 ~]# yum install liberation-fonts-common [root@nccapp01 ~]# yum install cjkuni-uming-fonts
- 设置中文字符集
[root@nccapp01 ~]# export LANG=zh_CN.UTF-8 [root@nccapp01 ~]# export LC_CTYPE=zh_CN.UTF-8
- 图形输出配置
--配置输出图形的地址为本机(操作服务器的电脑)的IP地址 [root@nccapp01 ~]# export DISPLAY=172.20.10.2:0.0 [root@nccapp01 ~]# echo $DISPLAY 172.20.10.2:0.0 [root@nccapp01 ~]# xhost + access control disabled, clients can connect from any host [root@nccapp01 ~]# xclock Warning: Missing charsets in String to FontSet conversion
- 能够输出时钟即成功
- 安装NCCloud
##查看我们的安装包解压文件 [root@nccapp01 ncc]# ll 总用量 5108524 -rw-r--r-- 1 root root 5231121050 5月 25 19:36 NCCloud1909.zip drwxr-xr-x 6 root root 197 8月 22 2018 ufjdk drwxr-xr-x 30 root root 4096 11月 18 2019 yonyou_nccloud ##进入到安装目录中 [root@nccapp01 ncc]# cd yonyou_nccloud/ ##执行安装程序 [root@nccapp01 yonyou_nccloud]# ./setup.sh
- 然后我们的图形就加载出来了,点击同意安装进行下一步
- 修改安装目录位置(我这里/opt/目录空间最大)
- 等待安装完成,然后取消选择【继续选择“应用服务器”】,完成