Ubuntu安装hexo
ubuntu安装hexo2024.04.08改为docker安装hexo,compose文件如下: 1sudo docker compose up -d 然后访问ip+7700即可。 12345678910111213141516171819202122232425version: '3'services: hexo: container_name: hexo image: bloodstar/hexo:latest hostname: hexo-learnplant ports: - "7700:4000" volumes: - ./blog:/app #env_file: # - .env # 部分公用环境变量放到这里,以是的多个docker之间共享环境变量 environment: - PUID=1000 - PGID=1000 - TZ=Asia/Shanghai -...
Plant Simulation常用代码
PlantSimulation常用代码1、清空控制台1clearConsole 2、统计故障时间123if ?.failed 修复时间统计[1,修复时间统计.ydim+1] :=?.getDisruptionendtime-eventController.simTimeend
光猫桥接模式下通过OpenWRT访问光猫
光猫桥接模式下通过openWRT访问光猫我用的是openwrt18.06版。所有设置只需要通过web gui界面。不需要打命令。 前提: 123光猫ip:192.168.0.1openWRTip:192.168.1.1注意,此处两个ip不在一个ip段内。 以下设置步骤开始: openwrt-网络-接口-添加新接口。 取个名”lightrouter”,选取静态ip,地址设为和光猫一样的网段某个ip,此处设为192.168.0.254 openwrt-网络-静态路由-添加新的ipv4静态路由。 输入光猫地ip,192.168.0.1,即可访问。