zlib

How Link External C Library to WebAssembly Build

大憨熊 提交于 2020-08-07 05:26:03
问题 I was reading this article (https://www.smashingmagazine.com/2019/04/webassembly-speed-web-app/) that explained how they used zlib, among other things, to speed up their web project: To support the zlib library, we use the flag USE_ZLIB; zlib is so common that it’s already been ported to WebAssembly, and Emscripten will include it for us in our project I would like to use zlib in my own WASM module. In my C code (compiled with emcc), I wrote this interfacing function: #include <zlib.h> int

How Link External C Library to WebAssembly Build

喜你入骨 提交于 2020-08-07 05:25:29
问题 I was reading this article (https://www.smashingmagazine.com/2019/04/webassembly-speed-web-app/) that explained how they used zlib, among other things, to speed up their web project: To support the zlib library, we use the flag USE_ZLIB; zlib is so common that it’s already been ported to WebAssembly, and Emscripten will include it for us in our project I would like to use zlib in my own WASM module. In my C code (compiled with emcc), I wrote this interfacing function: #include <zlib.h> int

How Link External C Library to WebAssembly Build

无人久伴 提交于 2020-08-07 05:21:56
问题 I was reading this article (https://www.smashingmagazine.com/2019/04/webassembly-speed-web-app/) that explained how they used zlib, among other things, to speed up their web project: To support the zlib library, we use the flag USE_ZLIB; zlib is so common that it’s already been ported to WebAssembly, and Emscripten will include it for us in our project I would like to use zlib in my own WASM module. In my C code (compiled with emcc), I wrote this interfacing function: #include <zlib.h> int

centos 7.6—— 搭建LAMP平台(手工编译Apache、mysql 、PHP、论坛)

白昼怎懂夜的黑 提交于 2020-08-06 13:15:24
centos 7.6—— 搭建LAMP平台(手工编译Apache、mysql 、PHP、论坛) 文章目录 centos 7.6—— 搭建LAMP平台(手工编译Apache、mysql 、PHP、论坛) LAMP平台概述 (1) 什么是LAMP (2) 构成组件 (3) LAMP的优势 Apache 起源 Apache 简介 (1) 主要特点 (2) 编译安装的优点 (3) httpd服务的目录结构 (4) httpd.conf 常用的全局配置参数 一、手工编译Apache 准备阶段 实验步骤 设置配置文件软链接到/etc/init.d 二、手工编译MySQL 准备阶段 实验步骤 三、手工编译PHP 四、搭建论坛 (1)安装论坛 (2)登录论坛主页 (3)登录后台 LAMP平台概述 (1) 什么是LAMP 目前最为成熟的一种企业网站应用模式,可提供动态web站点应用及开发环境 (2) 构成组件 Linux、Apache、MySQL、PHP/Perl/Python (3) LAMP的优势 成本低廉 可定制、易于开发 方便易用、安全和稳定 Apache 起源 源于 A Patchy Server,著名的开源web服务软件 1995年时,发布Apache服务程序的1.0 版本 由Apache软件基金会(ASF)负责维护 最新的名称为 “ Apache HTTP Server ” 官方站点:

CentOS7.6编译安装mysql-5.6.44源码

冷暖自知 提交于 2020-08-06 09:16:07
1安装依赖包 yum install gcc gcc-c++ make cmake libaio-devel openssl-devel zlib-devel ncurses-devel bison -y 2下载解压boost: mkdir /usr/local/src/boost && cd /usr/local/src/boost wget -c https://kent.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz --no-check-certificate 3下载mysql-5.6.44源码并解压: mkdir /usr/local/src/mysql && cd /usr/local/src/mysql wget -c https://downloads.mysql.com/archives/get/p/23/file/mysql-5.6.44.tar.gz 4进入MySQL解压目录,建立编译目录并进入编译目录: cd /usr/local/src/mysql/mysql-5.6.44 && mkdir build && cd build 5配置 mkdir /opt/mysql cmake /usr/local/src/mysql/mysql-5.6.44 -DCMAKE

nginx 嵌入式

淺唱寂寞╮ 提交于 2020-08-06 02:33:08
./configure --help --help print this message --prefix=PATH set installation prefix --sbin-path=PATH set nginx binary pathname --modules-path=PATH set modules path --conf-path=PATH set nginx.conf pathname --error-log-path=PATH set error log pathname --pid-path=PATH set nginx.pid pathname --lock-path=PATH set nginx.lock pathname --user=USER set non-privileged user for worker processes --group=GROUP set non-privileged group for worker processes --build=NAME set build name --builddir=DIR set build directory --with-select_module enable select module --without-select_module disable select module -

linux 安装python 3.7

柔情痞子 提交于 2020-08-05 04:44:05
原文地址: https://www.cnblogs.com/knighterrant/p/10719887.html 1、安装依赖文件 yum install -y gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 2、解压文件 tar -zxvf Python-3.7.8.tgz 3、进入文件夹 cd Python-3.7.8 4、 编译且安装 4.1: 释放编译文件 Makefile ./configure --prefix=/opt/python37 # 指定安装目录为/opt/python37 4.2: 编译 make # 相当于把源码包里面的代码编译成linux服务器可以识别的代码 4.3:安装 make install 4.2.4.3合并 make && make install 5.配置环境变量 vim /etc/profile export PYTHON_HOME=/opt/python37 export PATH=${PYTHON_HOME}/bin:$PATH source

Linux 之 openssl版本升级

南楼画角 提交于 2020-08-05 03:06:02
一、编译相关程度依赖包 wget http://www.zlib.net/zlib-1.2.11.tar.gz tar zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure make test make install 构建共享库 make clean ./configure --shared make test make install cp zutil.h /usr/local/include cp zutil.c /usr/local/include 二、编译安装新版本的openssl wget https://www.openssl.org/source/openssl-1.1.1.tar.gz tar xf openssl-1.1.1.tar.gz cd openssl-1.1.1 ./config shared zlib make make install mv /usr/bin/openssl /usr/bin/openssl.bak ln -s /usr/local/bin/openssl /usr/bin/openssl ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln -s /usr/local/lib64/libcrypto.so.1

5.1. PHP

只愿长相守 提交于 2020-08-04 17:37:46
内容索引: 5.1. PHP 5.1.1. 后门 5.1.1.1. php.ini构成的后门 5.1.1.2. .user.ini文件构成的PHP后门 5.1.2. 反序列化 5.1.2.1. PHP序列化实现 5.1.2.2. PHP反序列化漏洞 5.1.2.3. 相关CVE 5.1.2.3.1. CVE-2016-7124 5.1.3. Disable Functions 5.1.3.1. 机制实现 5.1.3.2. Bypass 5.1.4. Open Basedir 5.1.4.1. 机制实现 5.1.5. 安全相关配置 5.1.5.1. 函数与类限制 5.1.5.2. 目录访问限制 5.1.5.3. 远程引用限制 5.1.5.4. Session 5.1.5.4.1. Session.Save 5.1.5.4.2. Session.Upload 5.1.6. PHP流 5.1.6.1. 简介 5.1.6.2. 封装协议 5.1.6.3. PHP支持流 5.1.6.3.1. 输入输出流 5.1.6.3.2. fd 5.1.6.3.3. memory与temp 5.1.6.3.4. input 5.1.6.4. filter 5.1.6.4.1. 过滤器列表 5.1.6.4.2. 过滤器利用tricks 5.1.7. htaccess injection payload 5

Linux安装nginx

旧巷老猫 提交于 2020-08-04 10:15:33
1、去官网下载nginx,并解压 2、安装nginx需要的环境 安装gcc: yum -y install gcc-c++ 安装 pcre yum -y install pcre pcre-devel 安装 zlib yum -y install zlib zlib-devel 安装 openssl yum -y install openssl openssl-devel 安装完后进入nginx目录: 执行 ./configure 这种是默认的安装路径:/usr/local/nginx/sbin/nginx 也可以执行 ./configure --prefix=/home/work/ 来指定安装目录 配置完成后,执行 make、make install命令完成nginx安装 然后进入安装目录执行./nginx来执行。 来源: oschina 链接: https://my.oschina.net/ccupup/blog/4466446