centos部署unity accelerator

参考 https://docs.unity3d.com/Manual/UnityAccelerator.html 

方案1:下载Unity Accelerator 手动安装,

unity-accelerator-app-v1.0.941+g6b39b61.AppImage为下载的文件

1、放入服务器目录, chmod +x unity-accelerator-app-v1.0.941+g6b39b61.AppImage

2、 执行 ./unity-accelerator-app-v1.0.941+g6b39b61.AppImage

      按理说就可以正常用了,如果提示各种包找不到,说明你的系统不适合这种安装方式,包括但不限于以下报错~~~

AppImages require FUSE to run

error while loading shared libraries: libXcursor.so.1

error while loading shared libraries: libX11.so.6

error while loading shared libraries: libXcomposite.so.1

error while loading shared libraries: libXdamage.so.1

error while loading shared libraries: libXext.so.6

error while loading shared libraries: libXi.so.6

error while loading shared libraries: libnss3.so

error while loading shared libraries: libatk-1.0.so.0

error while loading shared libraries: libatk-bridge-2.0.so.0

error while loading shared libraries: libgdk_pixbuf-2.0.so.0

error while loading shared libraries: libgtk-3.so.0

error while loading shared libraries: libdrm.so.2

以上报错需安装以下包

yum install fuse fuse-libs libX11-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXext-devel libXi-devel nss-devel atk-devel at-spi2-atk gdk-pixbuf2 gtk3

但我实在是没耐心继续往下安装包了

接下来看第二种方案,docker安装

方案2、Docker安装accelerator

1、配置阿里云源

        yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

      如果没有这个命令yum-config-manager,则yum -y install yum-utils

2、安装Docker

               yum install docker-ce -y

3、配置Docker开机启动

        systemctl enable docker

4、启动Docker

         systemctl start docker

        如果提示 docker.service: Start request repeated too quickly,则重启下系统 reboot

5、下载accelerator的docker镜像(Docker)

       docker pull unitytechnologies/accelerator

6、初次启动

       docker run -p 80:80 -p 443:443 -p 10080:10080 -v "${PWD}/agent:/agent" --env PASSWORD="123456" --env USER="admin" unitytechnologies/accelerator:latest

     

      访问服务器的80端口,已经可以访问

7、停止accelerator, Ctrl+C

8、再次启动

        docker ps -a            #查看历史,找到accelerator的CONTAINER ID

        docker start 0e5c43cc97ad        #0e5c43cc97ad即为accelerator的CONTAINER ID

你可能感兴趣的:(linux,Accelerator,Unity,cache,server)