- 博客(14)
- 收藏
- 关注
原创 workerman中使用socketIO将TCP协议接受的硬件数据发送到前端
workerman安装:http://doc.workerman.net/install/install.htmlsocket.IO:https://github.com/walkor/phpsocket.io建立Test类 用与接受硬件数据前端接收数据
2020-07-01 17:34:12 1475
原创 linux宝塔计划任务调用Laravel artisan 命令
/www/server/php/80/bin/php /www/wwwroot/digital-platform/artisan hotel_confirm
2022-04-25 11:43:26 794
原创 laravel 动态更改config
function setConfig($name, $value){ $config = \Illuminate\Support\Facades\Config::get('database1'); $config['connections']['s'] = $value; $path = base_path() . DIRECTORY_SEPARATOR . 'config'.DIRECTORY_SEPARATOR.'database1.php'; file_put_co
2021-04-06 11:39:31 1148
原创 记录Redis在Windows下的安装与服务管理报错:Redis service failed to start.
windows下安装Redis时,输出命令:redis-server --service-start 启动时报 Redis service failed to start.启动失败错误经查找配置文件redis.windows-service.conf在当前目录之中并没有Logs 文件夹 更没有server_log.txt文件解决办法:手动创建日志目录,并于其中新建一个日志文件重新安装服务,并用参数–port指定服务的端口:然后再启动就可以了...
2021-02-19 16:56:08 2812
转载 php数组转json字符串
/***************************************************************使用特定function对数组中所有元素做处理@param string &$array 要处理的字符串@param string $function 要执行的函数 例如:urlencode,strval 等@return boolean $apply_to_keys_also 是否也应用到key
2020-12-28 13:00:54 254
原创 laravel 中使用workerman
https://gitee.com/lymanlike/learning_test/blob/master/app/Console/Commands/Workerman.php#守护进程方式启动:protected $signature = ‘workerman {action}{–d}’;$arg = $this->argument(‘action’);$argv[1] = $arg;$argv[2] = $this->option(‘d’) ? ‘-d’ : ‘’;//该参数是以d
2020-07-01 16:34:17 1637
原创 mysql取出两列值中某一列没有的数据
select num,count1 from (select num,count(num) as count1 from(select order_id as num FROM ticket_order where payment_channel in (‘wechat’,‘alipay’,‘tongcheng’,‘ctrip’,‘jingdianyou’,‘lvmama’,‘meituan’) and ticket_id in (2,3,12,13,14,16,17) and order_status
2020-06-29 09:30:59 995
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人