Last update at :2024-03-18,Edit by888u
Host information Amway has used next-terminal before, which is relatively easy to use in the open source springboard system. Although it is not as detailed as jumpserver, it should be used for daily use or management of chicks on the web side. It's enough. Due to font copyright issues, developers do not have built-in Chinese fonts by default. People in the group often ask why the Chinese characters are garbled, so I will write an installation tutorial for your reference. I will not go into trouble and post the configuration directly.
1. The simplest installation of sqlite database
Create folders and files: mkdir -p /root/next-terminal/drive mkdir -p /root/next-terminal/recording/ touch /root/next-terminal/next-terminal.db cd /root/next-terminal/ Download the Huawei Hongmeng font that is free for commercial use: curl -o msyh.ttf https://tutu.ovh/work/fonts/HarmonyOS%20Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf Write the yml file of docker-compose: vim docker-compose.yml version: '3.3' services: next-terminal: image: "dushixiang/next-terminal:latest" ports: - "8088:8088" volumes: - /root/next-terminal/drive:/usr/local/next-terminal/drive - /root/next-terminal/recording:/usr/local/next-terminal/recording - /root/next-terminal/next-terminal.db:/usr/local/next-terminal/next-terminal.db - /root/next-terminal/msyh.ttf:/usr/local/share/fonts/msyh.ttf start up: docker-compose up -d stop: docker-compose down Upgrade updates: docker-compose pull && docker-compose up -d && docker image prune -a -f2. Install using MySQL database
Create folders and files: mkdir -p /root/next-terminal/drive mkdir -p /root/next-terminal/recording/ touch /root/next-terminal/next-terminal.db cd /root/next-terminal/ Download the Huawei Hongmeng font that is free for commercial use: curl -o msyh.ttf https://tutu.ovh/work/fonts/HarmonyOS%20Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf Write the yml file of docker-compose: vim docker-compose.yml version: '3.3' services: mysql: image: mysql:8.0 environment: MYSQL_DATABASE: next-terminal MYSQL_USER: next-terminal MYSQL_PASSWORD: next-terminal MYSQL_ROOT_PASSWORD: next-terminal ports: - "3306:3306" next-terminal: image: "dushixiang/next-terminal:latest" environment: DB: "mysql" MYSQL_HOSTNAME: "mysql" MYSQL_PORT: 3306 MYSQL_USERNAME: "next-terminal" MYSQL_PASSWORD: "next-terminal" MYSQL_DATABASE: "next-terminal" ports: - "8088:8088" volumes: - /root/next-terminal/drive:/usr/local/next-terminal/drive - /root/next-terminal/recording:/usr/local/next-terminal/recording - /root/next-terminal/msyh.ttf:/usr/local/share/fonts/msyh.ttf depends_on: - mysql start up: docker-compose up -d stop: docker-compose down Upgrade updates: docker-compose pull; docker-compose up -d; docker image prune -a -f3. For next-terminal that is already in use, you can directly copy it to the corresponding directory for configuration.
curl -o msyh.ttf https://tutu.ovh/work/fonts/HarmonyOS%20Sans/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Medium.ttf docker cp msyh.ttf be5aa8afa2f0:/usr/local/share/msyh.ttf docker exec -it be5aa8afa2f0 mkfontscale docker exec -it be5aa8afa2f0 mkfontdir docker exec -it be5aa8afa2f0 fc-cacheRecommended site search: how to check IP address, mainland China domain name, Taiwan host, check IP detailed address Ministry of Industry and Information Technology registration website, website server rental, me domain name, rental server domain name registration information query, cheap domain name registration,
发表评论