方法一:
crul一切外部请求的关键,请求head添加gzip:curl_setopt($ch, CURLOPT_ENCODING, “gzip”);
方法二:
简易方法get,需zlib库扩展
file_get_contents(“compress.zlib://”.$url);
方法一:
crul一切外部请求的关键,请求head添加gzip:curl_setopt($ch, CURLOPT_ENCODING, “gzip”);
方法二:
简易方法get,需zlib库扩展
file_get_contents(“compress.zlib://”.$url);
下载地址:
115: https://115.com/s/sw3edw536nl #冒险岛私服访问码:pe67复制这段内容
死🐎:https://pan.baidu.com/s/11v8SVjdZvQ0xAEEP8IgsSg 提取码: 7qmu
客户端安装教程:
1.下载客户端:Factorio毛子版,安装过程看不懂就不点
2.内置全语言包,覆盖根目录
3.多人直连群服务器 链接# catgee.crazypeak.im 密码# 2020
4.创建自己的中二名字
115:https://share.115.com/sw3ikl536nl#Factorio访问码:l700b2
bai:https://pan.baidu.com/s/1_b0NAAm2v6KipurCHdq7mQ 提取码: ntxg
由衷感谢国内D2anhei2战网
1.下载对应版本D2 1.13d (原网站)
2.注册表注入,“2018新战网-地洞传说-1.13版.reg”,目录自带
3.覆盖1.13高分辨补丁,自己看情况搞,建议快捷方式命令
-direct -pdir 113map -skiptobnet -locale chi -w
//加载更快 //地图mod,全开 //直接进入battle.net //中文 //窗口
窗口化并游戏内设置720p(需建立人物后设置),测试稳定60帧,1080p劝退
4.如何联网?自己睇教程
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/ssrmu.sh && chmod +x ssrmu.sh && bash ssrmu.sh
Libsodiumr_ver_backup="1.0.18" echo -e "${Info} 开始获取 libsodium 最新版本..." Libsodiumr_ver=$(wget -qO- "https://github.com/jedisct1/libsodium/tags"|grep "/jedisct1/libsodium/releases/tag/"|head -1|sed -r 's/.*tag\/(.+)\">.*/\1/') [[ -z ${Libsodiumr_ver} ]] && Libsodiumr_ver=${Libsodiumr_ver_backup} yum update echo -e "${Info} 安装依赖..." yum -y groupinstall "Development Tools" echo -e "${Info} 下载..." wget --no-check-certificate -N "https://github.com/jedisct1/libsodium/releases/download/${Libsodiumr_ver}-RELEASE/libsodium-${Libsodiumr_ver}.tar.gz" echo -e "${Info} 解压..." tar -xzf libsodium-${Libsodiumr_ver}.tar.gz && cd libsodium-${Libsodiumr_ver} echo -e "${Info} 编译安装..." ./configure --disable-maintainer-mode && make -j2 && make install echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
参考:https://www.moerats.com/archives/387/
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
autoconf && ./configure && make && make install git --version
mkdir -p /data/git && cd /data/git git init --bare sample.git git update-server-info
git clone root@192.168.0.1:/data/git/sample.git # 输入 对应服务器 的 root 密码 root@192.168.0.1's password:
git clone https://github.com/gnosek/fcgiwrap.git cd fcgiwrap && autoreconf -i && ./configure && make && make install vm /etc/init.d/fcgiwrap #! /bin/bash ### BEGIN INIT INFO # Provides: fcgiwrap # Required-Start: $remote_fs # Required-Stop: $remote_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: FastCGI wrapper # Description: Simple server for running CGI applications over FastCGI ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin SPAWN_FCGI="/usr/local/bin/spawn-fcgi" DAEMON="/usr/local/sbin/fcgiwrap" NAME="fcgiwrap" PIDFILE="/var/run/$NAME.pid" FCGI_SOCKET="/var/run/$NAME.socket" FCGI_USER="www-data" FCGI_GROUP="www-data" FORK_NUM=5 SCRIPTNAME=/etc/init.d/$NAME case "$1" in start) echo -n "Starting $NAME... " PID=`pidof $NAME` if [ ! -z "$PID" ]; then echo " $NAME already running" exit 1 fi $SPAWN_FCGI -u $FCGI_USER -g $FCGI_GROUP -s $FCGI_SOCKET -P $PIDFILE -F $FORK_NUM -f $DAEMON if [ "$?" != 0 ]; then echo " failed" exit 1 else echo " done" fi ;; stop) echo -n "Stoping $NAME... " PID=`pidof $NAME` if [ ! -z "$PID" ]; then kill `pidof $NAME` if [ "$?" != 0 ]; then echo " failed. re-quit" exit 1 else rm -f $pid echo " done" fi else echo "$NAME is not running." exit 1 fi ;; status) PID=`pidof $NAME` if [ ! -z "$PID" ]; then echo "$NAME (pid $PID) is running..." else echo "$NAME is stopped" exit 0 fi ;; restart) $SCRIPTNAME stop sleep 1 $SCRIPTNAME start ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|status}" exit 1 ;; esac
# 注意 spawn-fcgi 跟 fcgiwrap 脚本路径及 FCGI_GROUP 跟 FCGI_GROUP
# 脚本启动了 5 个 cgi 进程,按需调整
nginx server.conf配置
server { listen 80; server_name git.server.com; #root /usr/local/share/gitweb; #gitWeb按需配置 client_max_body_size 100m; auth_basic "Git User Authentication"; auth_basic_user_file /usr/local/nginx-1.10.2/conf/pass.db; location ~ ^.*\.git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx))$ { root /data/git; } location ~ /.*\.git/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ { root /data/git; fastcgi_pass unix:/var/run/fcgiwrap.socket; fastcgi_connect_timeout 24h; fastcgi_read_timeout 24h; fastcgi_send_timeout 24h; fastcgi_param SCRIPT_FILENAME /usr/local/libexec/git-core/git-http-backend; fastcgi_param PATH_INFO $uri; fastcgi_param GIT_HTTP_EXPORT_ALL ""; fastcgi_param GIT_PROJECT_ROOT /data/git; fastcgi_param REMOTE_USER $remote_user; include fastcgi_params; } #下面为gitweb配置 try_files $uri @gitweb; location @gitweb{ fastcgi_pass unix:/war/ren/fcgiwrap.socket; fastcgi_param GITWEB_CONFIG /etc/gitweb.conf; fastcgi_param SCRIPT_FILENAME /usr/local/share/gitweb/gitweb.cgi; fastcgi_param PATH_INFO $uri; include fastcgi_params; } }
配置git用户表
yum -y install httpd-tools cd /usr/local/nginx/conf htpasswd -c pass.db gituser # 添加用户时执行 htpasswd pass.db username
vm /etc/gitweb.conf # path to git projects (<project>.git) $projectroot = "/data/git"; # directory to use for temp files $git_temp = "/tmp"; # target of the home link on top of all pages $home_link = $my_uri || "/"; # html text to include at home page $home_text = "indextext.html"; # file with project list; by default, simply scan the projectroot dir. $projects_list = $projectroot; # javascript code for gitweb $javascript = "static/gitweb.js"; # stylesheet to use $stylesheet = "static/gitweb.css"; # logo to use $logo = "static/git-logo.png"; # the 'favicon' $favicon = "static/git-favicon.png";
/usr/local/share/gitweb/gitweb.cgi
2.1:
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendorperl /usr/share/perl5/vendorperl /usr/lib/perl5 /usr/share/perl5 .) BEGIN failed--compilation aborted. yum -y install perl-CPAN
2.2:
Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendorperl /usr/share/perl5/vendorperl /usr/lib/perl5 /usr/share/perl5 .) BEGIN failed--compilation aborted. yum -y install perl-CGI
2.3:
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/gitweb/gitweb.cgi line 20. yum -y install perl-Time-HiRes
git clone https://github.com/kogakure/gitweb-theme.git cd gitweb-theme ./setup -vi -t /usr/local/share/gitweb --install # -t 指定 gitweb 根目录,一路 y 即可
$alipaySubmit->buildRequestParaToString($parameter);
apiready = function() { var aliPayPlus = api.require('aliPayPlus'); aliPayPlus.payOrder( {orderInfo: '(string)'}, //PHP后端获取参数 function(ret, err) { if (ret.code == '9000') { alert = {title: '系统提示',msg: '支付成功'} api.alert(alert, function(ret, err) { if (ret) { api.closeWin(); window.location.href=''; } }); return true; } else if (ret.code == '8000') { alert = {title: '系统提示',msg: '正在处理中,支付结果未知',buttons: ['确定']} } else if (ret.code == '5000') { alert = {title: '系统提示',msg: '重复请求',buttons: ['确定']} } else if (ret.code == '6001') { alert = {title: '系统提示',msg: '用户中途取消支付操作',buttons: ['确定']} } else if (ret.code == '6002') { alert = {title: '系统提示',msg: '网络连接出错',buttons: ['确定']} } else if (ret.code == '6004') { alert = {title: '系统提示',msg: '支付结果未知',buttons: ['确定']} } api.alert(alert); window.history.back(-1); } ); };
$return = WxPayApi::unifiedOrder($input); $time = time(); $result = new WxPayResults; $result->SetData('appid',$return['appid']); $result->SetData('partnerid',$return['mch_id']); $result->SetData('prepayid',$return['prepay_id']); $result->SetData('package','Sign=WXPay'); $result->SetData('noncestr',$return['nonce_str']); $result->SetData('timestamp',$time); $return['sign'] = $result->SetSign(); $return['time'] = $time;
apiready = function() { var wxPay = api.require('wxPay'); wxPay.payOrder({ apiKey: '$return->appid', //后端获取参数 orderId: '$return->prepay_id', //后端获取参数 mchId: '$return->mch_id', //后端获取参数 nonceStr: '$return->nonce_str', //后端获取参数 timeStamp: '$return->time', //后端获取参数 sign: '$return->sign', //后端获取参数 package: '$return->package', //后端获取参数 }, function(ret, err) { if (ret.status) { alert = {title: '系统提示',msg: '支付成功'} api.alert(alert, function(ret, err) { if (ret) { api.closeWin(); window.location.href=''; } }); return true; } else { alert(err.code); } }); };
/** * 建议部署在入口中间层 */ public function _initialize($con = '') { parent::_initialize(); // TODO: Change the autogenerated stub $action = explode('.', $this->request->action()); $con = 'app\practice\controller\\' . $action[0]; $controller = new $con(); $action = $action[1] ?? 'index'; $controller->$action(); return die; }
extension=php_curl.dll (curl扩展) extension=php_gd2.dll (gd扩展) extension=php_mbstring.dll extension=php_mysqli.dll (mysqli扩展,7.0代替mysql) extension=php_openssl.dll (openssl扩展) extension=php_pdo_mysql.dll (pdo扩展)
max_input_vars = 2000; (单次提交变量参数个数限制) max_input_time = 60; (提交响应时间) max_execution_time = 30;(执行时间) upload_max_filesize = 512M;(上传文件最大限制) max_file_upload = 20; (单次请求最大上传文件个数)
ps aux|grep php-fpm kill -USR2 xxxxx pkill php-fpm ./sbin/php-fpm
wget -c https://github.com/phpredis/phpredis/archive/php7.zip unzip php7.zip cd phpredis-php7 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make make install
添加至”php.ini“
extension=redis.so