Hddtemp

install yum install hddtemp apt install hddtemp # start service at 7634 systemctl enable hddtemp systemctl start hddtemp #config file vi /etc/default/hddtemp #1. uncomment DISKS and set vaule /dev/sd[bcd] #2. set RUN_DAEMON="true" yum install netcat apt install netcat # test nc localhost 7634

March 24, 2023 · 1 min · Steven Jiang

Html

The HTTP request is not acceptable for the requested resource 页面header添加 <meta name="referrer" content="no-referrer" />

March 22, 2023 · 1 min · Steven Jiang

Rpc_shutdown

windows 启用远程关机 服务中RemoteRegistry改成自动 in Regedit HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System create DWORD LocalAccountTokenFilterPolicy, give it the value 1

February 3, 2023 · 1 min · Steven Jiang

Hikvision

快照Snapshot http://username:password@ip:port[80]/ISAPI/Streaming/channels/101/picture http://username:password@ip:port[80]/ISAPI/ContentMgmt/StreamingProxy/channels/101/picture RTSP rtsp://username:password@ip:port[554]/ISAPI/Streaming/Channels/101 ISSUE NVR POE设备,无法直连摄像机 开启网络-高级配置-其他-启用虚拟主机 摄像机可以通过http://nvr_ip:6500[通道号] 来访问摄像机页面

February 3, 2023 · 1 min · Steven Jiang

Docker ELK

docker compose files https://github.com/deviantony/docker-elk

September 8, 2022 · 1 min · Steven Jiang

Docker GeoServer

version: '3.1' services: geoserver: image: geonode/geoserver:2.18.2 container_name: geoserver volumes: - /opt/geoserver/data:/geoserver_data/data ports: - 18080:8080 restart: always

September 8, 2022 · 1 min · Steven Jiang

Docker OSM

version: '3.2' services: osm: image: overv/openstreetmap-tile-server:latest container_name: osm volumes: - openstreetmap-data:/var/lib/postgresql/12/main # environment: # - ALLOW_CORS=enabled ports: - 28080:80 restart: always command: "run" networks: - proxy volumes: openstreetmap-data: external: true networks: proxy: external: true

September 8, 2022 · 1 min · Steven Jiang

Docker Oracle11gR2

version: '3.1' services: oracle-xe: image: gvenzl/oracle-xe:11 container_name: oracle-xe restart: always user: 1000:1000 environment: - ORACLE_PASSWORD={password} volumes: - ./data:/u01/app/oracle/oradata ports: - 1521:1521 network_mode: bridge version: '3.1' services: oracle11g: image: registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g container_name: oracle11g privileged: true ports: - 1521:1521 restart: always volumes: - /home/oracle/oradata:/home/oracle/app/oracle/oradata network_mode: bridge root的默认密码为helowin oracle默认密码为oracle

September 8, 2022 · 1 min · Steven Jiang

Docker Keycloak

version: '3' volumes: postgres_data: driver: local services: postgres: image: postgres volumes: - postgres_data:/var/lib/postgresql/data environment: POSTGRES_DB: keycloak POSTGRES_USER: keycloak POSTGRES_PASSWORD: {db password} keycloak: image: quay.io/keycloak/keycloak:legacy environment: DB_VENDOR: POSTGRES DB_ADDR: postgres DB_DATABASE: keycloak DB_USER: keycloak DB_SCHEMA: public DB_PASSWORD: {db password} KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: {password} # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it....

September 8, 2022 · 1 min · Steven Jiang

Nginx Issue

Nginx Issue nginx处理redirect location端口丢失的问题 反向代理 proxy_set_header Host $http_host; # 这里 proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; 访问目录没带/ if (-d $request_filename) { rewrite [^/]$ $scheme://$http_host$uri/ permanent; } 跨域访问CORS add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; add_header 'Access-Control-Allow-Credentials' 'true'; 上传文件 client_max_body_size 64m;

September 8, 2022 · 1 min · Steven Jiang