WeChat public number material management
1, There are two ways to upload permanent picture materials:
1. direct uploading of public number material management
2. Send POST request
Use the curl command to upload an example:
curl -F media=@pro_nlp.jpg "http://file.api.weixin.qq.com/cgi-bin/material/add_material?access_token=14_3-OW6zGI-yD1LzYlhovytEU81rqH6gDIrYimb4x ...
Posted by mator on Sat, 21 Dec 2019 11:09:11 -0800
Docker implements data persistence
Due to the explosion of Docker technology, companies of all sizes are now using Docker.Friends who are familiar with Docker know that DOcker containers run for a lifetime and that if a docker container fails, it means that the data in the container will also be lost.So data is important for the enterprise!How to persist data in docker containe ...
Posted by Ameslee on Thu, 19 Dec 2019 14:53:30 -0800
Docker data persistence
I. Introduction
When we use Docker to create a mysql container, the data is stored in the containerIf you accidentally execute docker rm $(docker ps -aq) to delete all container s one day, the data in mysql will also be deleted, which is not safeWe need to persist the data and store it outside the container. Even deleting the container will no ...
Posted by ryanh_106 on Wed, 18 Dec 2019 08:16:59 -0800
Another new feature of the ApiBoot interface service framework
What is the concept of global logging?
It's easy to understand. Like one of the parts of the logging framework we've always used like logback and log4j, the minbox-logging distributed logging framework is now independent of api-boot-plugins and has joined the minbox-projects open source organization. The blog has a series of articles explainin ...
Posted by xSN1PERxEL1TEx on Tue, 17 Dec 2019 18:12:12 -0800
002 consumer tips
Tips for using consumer
View all registered services
consul catalog services
Configure consumer.json
{
"server": true,
"datacenter": "testgame",
"client_addr": "0.0.0.0",
"advertise_addr":"192.168.83.70",
"bootstrap_expect": 1,
"enable_syslog": true,
"enable_script_checks": true,
"data_dir": "/usr/local/consul/data",
"node_name": "co ...
Posted by Dagwing on Sat, 14 Dec 2019 03:54:19 -0800
workerman message push
workerman's message push
Linux system environment detection
Linux system can use the following script to test whether the native PHP environment meets the requirements of WorkerMan.
curl -Ss http://www.workerman.net/check.php | php
If all the above scripts show ok, it means that the requirements of WorkerMan are met
Download of We ...
Posted by morgann7 on Fri, 13 Dec 2019 11:58:22 -0800
php curl example code to simulate post request and submit multidimensional array
The following code introduces the example code of php curl to simulate post request. The specific code is as follows:
$uri = "http://www.cnblogs.com/test.php "; / / here is the address of your own server
// Parameter array
$data = array (
'name' => 'tanteng'
// 'password' => 'password'
);
$ch = curl_init ();
// pri ...
Posted by debigmac on Fri, 13 Dec 2019 09:10:27 -0800
Upload and download alicloud OSS files in Linux Shell script
background
In the work, because the log files generated by our project are very important, and the local disk space is limited for a long time, so considering the backup scheme, we originally intended to save them on nas, but due to various reasons, we communicated with the operation and maintenance department to suggest saving them on oss.
Bec ...
Posted by jmrouleau on Thu, 12 Dec 2019 06:34:17 -0800
KubeSphere log backup and recovery practice
Why log backup is needed
KubeSphere log system uses the log collection and storage scheme of Fluent Bit + ElasticSearch, realizes the life cycle management of Index through the cursor, and cleans the long-term logs regularly. For scenarios with log audit and disaster recovery requirements, the default 7-day log retention policy of KubeSphere is ...
Posted by Naoa on Thu, 12 Dec 2019 03:06:36 -0800
Using docker to install Hadoop and Spark
Using docker configuration to install hadoop and spark
Install hadoop and spark images respectively
Install hadoop image
docker selected Mirror Address , the version of hadoop provided by this image is relatively new, and jdk8 is installed, which can support the installation of the latest version of spark.
docker pull uhopp ...
Posted by shantred on Tue, 10 Dec 2019 22:46:53 -0800