freecplus framework - directory operation

1, Source code description Freecplus is a C/C + + open source framework under Linux system. Please go to the C language technology network (www.freecplus.net) to download the source code. This article introduces the directory operation functions and classes of freecplus framework. The declaration file for functions and classes is freecplus / 6 ...

Added by GrexP on Mon, 20 Apr 2020 19:45:17 +0300

[original] quick start to golang [9.3] - profound slicing skills

Preface What will the following program output? package mainimport "fmt"func f(s []string, level int) {        if level > 5 {               return        }        s = append(s, fmt.Sprint(level))        f(s, level+1)        fmt.Println("level:", level, "slice:", s)}func main() {        f(nil, 0)} Its output is: level: 5 slice: [0 1 2 3 4  ...

Added by tripc1 on Mon, 20 Apr 2020 14:13:45 +0300

Build CDN distribution network architecture

1. Questions: Hechuang technology has registered the domain name www.mvsc.com for the enterprise website and deployed two Nginx website servers. In order to improve the response speed of this site when serving users in different regions, hechuang technology purchased CDN cache service from bluenews. According to the needs of cache distribution, ...

Added by htmlstig on Mon, 20 Apr 2020 12:46:00 +0300

Detailed description of C++ classes

Examples of Super Girls have been playing for a long time. To learn from them and leave them temporarily, I will use examples of actual project development to explain more about classes. File operations have been learned in the C language basics. In practice, in order to improve efficiency, I will encapsulate file operations into a class with ...

Added by bensonang on Sat, 18 Apr 2020 20:10:10 +0300

rhel7 add static route

1. Use route command to add //Routes added to hosts [root@localhost ~]# route add -host 8.8.8.8 dev ens3 [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.25.8.250 0.0.0.0 UG 100 0 0 ens3 8.8.8.8 0.0.0.0 ...

Added by rash on Sat, 18 Apr 2020 18:23:51 +0300

Using zabbix to monitor the CPU usage of LPAR

hyptop command This command belongs to zlinux tools. Redhat 6 for z comes with this command. As long as there is a linux Lpar on the mainframe, you can use this command to see the CPU usage of all lpars. hyptop The following command can be used to output the real-time CPU usage of each LPAR of the large machine with ...

Added by ozkan on Fri, 17 Apr 2020 19:56:34 +0300

Detailed explanation of php's high precision calculation

PHPer engaged in the financial industry has frequent capital calculation. If you don't pay attention to it, you may lose hundreds of thousands or even worse... Let's take an example: javascript Why is 0.1 + 0.2 not equal to 0.3? (correct result: 0.3000000000000004) Why is 0.8 * 7 not equal to 5.6? (correct result: 5. ...

Added by tekkenlord on Thu, 16 Apr 2020 13:12:51 +0300

Openstack control host installation and configuration process III

1. Environment configuration Hosts configuration   modify the / etc/hosts file and add wtcontroller, wtcompute1 and wtcompute2: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.16.10.100 wtcontroller 172.16.10.101 wtcompu ...

Added by fastidious on Tue, 07 Apr 2020 12:54:15 +0300

Adjust parameters to hide the information number of Nginx software version

Reference material [1] . learn Linux operation and maintenance from the old boy: Web Cluster practice, old boy setup script View native information [root@www ~]# curl -I 127.0.0.1 server_tokens In the http tag section of Nginx configuration file nginx.conf, add the parameter "server" tokens off http ...

Added by bschultz on Sun, 05 Apr 2020 19:50:47 +0300

ZABBIX server suddenly goes down

Reference document https://blog.51cto.com/seekerwolf/2357220 https://www.centos.bz/2017/08/zabbix-zbx_mem_malloc-out-of-memory/ Environmental Science CentOS 7.5.1804 Zabbix 3.4.15 phenomenonzabbix web graphical interface shows that zabbix server is not running. Enter zabbix server systemctl status zabbix server display service to down Troubles ...

Added by codects on Sun, 05 Apr 2020 09:01:15 +0300