php拓展 php安装redis

1
git clone https://github.com/phpredis/phpredis
1
2
3
4
5
cd phpredis
phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
ls /www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731/

追加php.ini

1
2
[redis]
extension = /www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731/redis.so

php拓展-php安装yacyaconf拓展;ClassYaconfnotfound

download resource

1
git clone  https://github.com/laruence/yaconf
1
2
3
4
5
 cd yaconf/
phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make -j
make install

最后添加到php.ini

1
2

extension=/www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731/yaconf.so

php拓展-php安装sqlservesqlsrv-宝塔

laravel报错

1
2
Illuminate\Database\QueryException
could not find driver (SQL: select top 1 * from [lswl_event] where [lswl_event].[event_id] = 1)

一、【加入微软的源】

1
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssqlrelease.repo

二、【安装驱动】

1
yum -y install msodbcsql mssql-tools unixODBC-devel

3、编译

1
2
3
4
5
6
7
8
9
wget http://pecl.php.net/get/pdo_sqlsrv-5.8.0.tgz
tar -zxvf pdo_sqlsrv-5.8.0.tgz
cd pdo_sqlsrv-5.8.0

phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make
make install

4、 修改php.ini

1
extension=/www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731/pdo_sqlsrv.so

FPR快速配置

FRPS配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7002
dashboard_user = admin
dashboard_pwd = login_password
log_file = ./frps.log
log_level = info
log_max_days = 1
disable_log_color = false
authentication_method = token
authenticate_new_work_conns = true
token = login_token
allow_ports =100-999, 2000-3000,3001,3003,4000-50000
max_pool_count = 5
max_ports_per_client = 0
tcp_mux = true

run

1
2
3
4
docker run -d --name=frps --restart=always \
--network host \
-v /root/frps.ini:/frp/frps.ini \
stilleshan/frps