在计算机性能调试领域里,profiling 是指对应用程序的画像,画像就是应用程序使用 CPU 和内存的情况。 Go语言是一个对性能特别看重的语言,因此语言中自带了 profiling 的库,这篇文章就要讲解怎么在 golang 中做 profiling。 Go性能优化 Go语言项目中的性能优化主要 ...
分类:
编程语言 时间:
2020-06-15 21:11:17
阅读次数:
61
while循环语法while <条件表达式>do 指令...done until 循环语句语法until <条件表达式>do 指令...done 范例1、使用while循环竖向打印54321[root@web1 scripts]# cat test38.sh#!/bin/bashi=5 #因为是从大 ...
分类:
其他好文 时间:
2020-06-15 20:45:50
阅读次数:
136
Writing geometries ArcGIS 10.7 Locate topic Using insert and update cursors, scripts can create new features in a feature class or update existing one... ...
分类:
其他好文 时间:
2020-06-14 19:07:41
阅读次数:
89
第二步 进入下面的目录 [root@localhost network-scripts]# pwd /etc/sysconfig/network-scripts 第三步 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static ...
分类:
其他好文 时间:
2020-06-11 22:06:32
阅读次数:
111
1.安装包下载 注意安装包统一64位或32位 1)python-2.7.16.amd64.msi 2)robotframework-3.0.2.tar.gz 3)robotframework-ride-1.3.win-amd64.exe 4)wxPython2.8-win64-unicode-2.8 ...
1.配置nameserver vi /etc/resolv.conf nameserver 192.168.10.10 2.查看网卡: nmcli d 3.修改dns cd /etc/sysconfig/network-scripts/ vi ifcfg-ens160 DNS1= 192.168.1 ...
分类:
其他好文 时间:
2020-06-11 12:05:54
阅读次数:
152
每次进入系统都要去查询IP地址是否十分麻烦,其实我们只需修改响应配置文件便可以使用固定的IP 1.进入系统配置文件目录 cd /etc/sysconfig/network-scripts 2.修改文件内容 vi ifcfg-ens33 BOOTPROTO=STATIC ONBOOT=YES 添加IP ...
分类:
系统相关 时间:
2020-06-10 11:04:46
阅读次数:
127
先切换到root权限 su root vim /etc/sysconfig/network-scripts/ifcfg-ens33 ens33是网络的名称 修改以下内容: BOOTPROTO=static ONBOOT=yes 增加以下内容: IPADDR=xxx.xxx.xxx.xxx NETMA ...
分类:
其他好文 时间:
2020-06-10 11:02:41
阅读次数:
62
package.json { "name": "myweb", "version": "1.0.0", "description": "", "main": "", "scripts": { "start": "ts-node index.ts" }, "author": "nero", "lice ...
分类:
其他好文 时间:
2020-06-10 10:55:46
阅读次数:
177
1.监控nginx状态1)现在需要被监控的服务器下的/etc/zabbix目录下创建scripts(建议脚本放到此创建并放置目录)2)vimnginx.sh脚本监控服务进程/端口(第二行是进程/第三行是端口)如果返回值为trun,则为1,如果返回值不对,则为0#!/bin/bash#result=netstat-anpt|grepnginx|grep-vgrepresult=netstat-anp
分类:
其他好文 时间:
2020-06-08 17:30:30
阅读次数:
89