拓冰建站拓冰建站
首页 / 资讯中心 / 正文

Electron在linux中安装运行

ifconfig eth0 172.16.12.21 netmask 255.255.0.0route add default gw 172.16.0.250安装脚本#!/bin/shmount -o remount,rw /yum install -y nodejs npmnpm config set electron_mirrorhttps://cdn.npm.taobao.org/dist/electron/sudo npm -g install electron --unsafe-permtrue运行脚本#!/bin/sh/home/start_xorg.sh /home/start_openbox.sh /home/start_xcompmgr.sh #sleep 5export DISPLAY:0electron --no-sandbox ./前端目录如#/bin/shexportDISPLAY:0 electron --no-sandbox /usr/local/gui/
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门