- 用Docker为Laravel5.4部署本地开发环境:php7.1+redis+mysql+nginx
咸鱼真咸
dockerredismysqlphplaravel
记一次用Docker为Laravel5.4部署本地开发环境:php7.1+redis+mysql+nginx首先我们在官方镜像php:7.1-fpm-alpine的基础上安装pdo_mysql和redis扩展,以及composer#使用官方的PHP7.1FPMAlpine镜像作为基础镜像FROMphp:7.1-fpm-alpine#更新软件包索引RUNapkupdate#安装必要的依赖包RUNap
- composer手动安装
骑着大象去上班
1、下载下载composer.phar文件官网下载https://getcomposer.org/download/1.8.0/composer.phar或者命令执行php-r"readfile('https://getcomposer.org/installer');"|php然后将composer.phar放在某个文件夹下,比如我的就是D:\wnmp\composer下下载后在composer
- springboot jar 增量部署
d70628610a61
springbootjarjava
1.把源jar包放到一个空文件夹里,然后把该jar包解压jar-xvfbgorder.jar2.把该文件夹里的源jar包删除3.把要升级的文件放到相对应的位置4.重新打包jar-cvfM0bgorder.jar*5.重启项目docker-composerestartbgorder
- thinkphp如何使用jwt
Coding Is Fun
php安全web安全
首先安装JWTcomposerrequirefirebase/php-jwt生成token数据准备准备一个需要的用户信息$account=['id'=>'root','password'=>123456];准备一个$payload$payload=["userinfo"=>$account,"exp"=>time()+3600*24//过期时间];不限于以下iss:发行人exp:到期时间sub:主
- Fiddler拦截并自定义请求结果及模拟发送接口请求
苏苏san
Fiddler模拟发送接口请求Composer允许自定义请求发送到服务器,可以手动创建一个新的请求,也可以在会话表中,拖拽一个现有的请求。Parsed模式下你只需要提供简单的URLS地址即可(如下图,可以在RequestBody定制一些属性参数,也可以添加header如X-TOKEN)Fiddler拦截指定规则的请求AutoResponder允许拦截指定规则的请求,并返回本地资源或Fiddler资
- 手动安装 composer.phar
昊喵喵博士
composer前端javascript
手动安装#将composer.phar文件放在你要安装的目录下,然后进入cmd命令框,输入以下命令就会多出一个composer.bat文件代表安装成功echo@php"%~dp0composer.phar"%*>composer.bat
- 有序数组去重算法
Thepatterraining
数据结构与算法php算法数据结构去重算法php
有序数组去重算法有序数组去重算法的复杂度是O(n)。代码如下,只进行一次循环,复杂度O(n)完整代码在github上面,只需要clone下来执行composerinstall然后执行phpartisantest:sortDeduplicate就可以看到结果了/***因为是有序数组,为了提高去重效率,取一个元素往后一直比对,如果相邻的相等表示是重复的*继续往后,直到不相等,也就是遇到一个不重复的为止
- lararvel-shop 创建应用
胡萝卜的兔
phplaravelphp服务器前端
创建应用composer加速composerconfig-grepo.packagistcomposerhttps://packagist.laravel-china.org创建Laravel-Shop项目使用最新框架composercreate-projectlaravel/laravellaravel-shopCreatinga"laravel/laravel"projectat"./lara
- phpstorm 插件等功能
胡萝卜的兔
laravelphpstormphpphpstormide
插件MaterialThemeUIUI主题插件ChinesePHPDocumentphp基本函数的中文文档PHPcomposer.jsonsupport在做php组件开发时,编辑composer.json文件时有对应的属性和值的自动完成功能BackgroundImagePlus背景图设置,安装之后,在打开View选项,就可以看到SetBackgroundImage选项了。.envfilessupp
- laravel 几种第三方接口
Lisa_Miss
PHPlaravel
1、微信和支付宝支付接口:用Yansongda扩展包,这个还蛮好用的,对于都会composer的小伙伴,安装也特简单(composerrequireyansongda/pay-vvv),官方文档(https://pay.yanda.net.cn/docs/2.x/overview)写得也有条理,清晰,就算不会接支付接口的人,也一看就会了几成,不过官方只支持RSA2加密,因此各位小伙伴注意咯。然后把
- compser好用镜像
胡萝卜的兔
phpcomposercomposerphp
阿里云Composer全量镜像所有项目都会使用该镜像地址:composerconfig-grepo.packagistcomposerhttps://mirrors.aliyun.com/composer/取消配置:composerconfig-g--unsetrepos.packagist项目配置仅修改当前工程配置,仅当前工程可使用该镜像地址:composerconfigrepo.packagi
- thinkPhp 6 从入门到精通(入门篇)
歌齽雪默萧
thinkphp6php后端
众所周知PHP是全世界最好的语言,没有之一(一个php程序员最后的倔强)。thinkPHP6作为主流框架被广泛使用下面教学thinkphp6的安装1.开发tp6之前得把小皮版本调到php7.3.4.nts没有就安装域名可以自己设置,跟目录写自己的,同步到hosts包括composer1.8.5也需要安装,后期多数代码都需要composer创建管理里面倒数第二个就是“composer”2.在控制面板
- composer install 报错Script @php artisan package:discover --ansi handling the post-autoload-dump ev...
一位先生_
composerself-update--stablecomposerupdate执行这两行代码即可
- TP6开发文档概述
CRMEB-嘉嘉
httpstp6
TP6(ThinkPHP6)是一个使用PHP语言开发的快速、兼容且简单的面向对象开发框架。以下是一个简化的TP6开发文档概述,涵盖了核心功能和一些常用方法:一、环境准备PHP安装:确保已经安装了与TP6兼容的PHP版本。Composer安装:Composer是PHP的依赖管理工具,用于安装和管理TP6及其依赖。TP6安装:使用Composer创建新的TP6项目,命令为composercreate-
- 使用Hyperledger Fabric和Composer实现区块链应用程序
JKX_geek
个人博客导航页(点击右侧链接即可打开个人博客):大牛带你入门技术栈目前无法绕过技术领域的是区块链话题。但除了加密货币之外,还有更多有趣的应用程序可以带来许多激动人心的软件生态系统。这也适用于Hyperledger项目,该项目提供了一个非常模块化的区块链框架。让我们看看使用HyperledgerFabric和Composer实现区块链应用程序是多么容易。关于项目HyperledgerHyperled
- 【Laravel】关于Laravel8的session与Redis连接的问题
e1373773
Laravellaravelredisphp
1.安装predis包,也可以选择其他包,如phpredis。composerrequirepredis/predis2.配置config\database.php文件,添加session连接配置。'redis'=>['client'=>env('REDIS_CLIENT','predis'),//['cluster'=>env('REDIS_CLUSTER','redis'),'prefix'=
- RabbitMQ-消息队列之topic使用
龙哥·三年风水
PHP延迟队列rabbitmq分布式php
1、安装rabbitmq怎么安装rabbitmq请查看之前课程,如果已经安装,请略过此步。2、创建vendor文件夹或是直接采用PHP框架mkdirvendor3、进入文件cdvendor4、安装php扩展composerrequirephp-amqplib/php-amqplib5、进入上级创建topic文件夹cd../mkdirtopic6、进入topic文件并创建生产者phpcdtopict
- 第一次用eclipse,导入项目错误Plug-in “org.eclipse.m2e.editor“ was unable to instantiate MavenPomEditor
zhangfeng1133
eclipsejavaide
第一次用eclipse,导入项目错误Plug-in"org.eclipse.m2e.editor"wasunabletoinstantiateMavenPomEditor。各种项目包,都不存在,maven应该能自动载入类包,比Php的composer方便太多Thecontainer'MavenDependencies'referencesnonexistinglibrary'C:\Users\Ad
- Yii实现RabbitMQ队列
huaweichenai
rabbitmq分布式phpyii
一:拓展安装composerrequireyiisoft/yii2-queuecomposerrequireenqueue/amqp-lib2:RabbitMQ队列配置在配置文件中配置RabbitMQ队列'components'=>[...'queue'=>['class'=>yii\queue\amqp_interop\Queue::class,'host'=>'192.168.6.88',//
- 使用Composer 来安装自己的PHP代码库
_玖-幽
PHP开发composersdkphp打包项目
一、将自己的PHP代码打包1.1打包项目在项目根目录创建composer.json,就可以打包项目,require写入你的项目依赖,name是自己项目的名字,格式:团队/项目名称{"name":"ciara/hello-world","require":{"monolog/monolog":"1.0.*"}}1.2指定包版本composer可以自动识别Git版本,也可以在composer.json
- thinkphp6配置阿里云上传图片
bug别找我
#php阿里云php服务器
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言一、安装二、配置阿里云三、接口实现前言提示:这里可以添加本文要记录的大概内容:在thinkphp6中编写上传图片接口并将图片上传到阿里云提示:以下是本篇文章正文内容,下面案例可供参考一、安装在终端打开项目根目录,使用composer进行安装composerrequirealiyuncs/oss-sdk-php二、配置阿里云
- 考研长难句-1-11
EasyNetCN
Beethoven'shabitofincreasingthevolumewithanextremeintensityandthenabruptlyfollowingitwithasuddensoftpassagewasonlyrarelyusedbycomposersbeforehim.根据NPC切分Beethoven'shabitofincreasingthevolumewithanextre
- ThinkPHP6中使用GatewayWorker
有衡
phpGatewayWorketphp
首先是先安装composerrequireworkerman/gateway-workercomposerrequireworkerman/gatewayclient下载demo服务器开通TCP端口8282、1238将Applications\YourApp目录随便放ThinkPHP6的哪个位置,我这里放在了app\gateway\ws目录中配置composer.json"autoload":{"
- phpspreadsheet导出数据和图片到excel
守护大白菜
php
仅作记录,废话不多说前提是已经安装了phpspreadsheet(composerrequirephpoffice/phpspreadsheet)一、数据拼装,调用excel类=',strtotime($start)];$where[]=['ctime','field($field)->select()->toArray();if(empty($list)){return$this->apiErr
- Laravel01 课程介绍以及Laravel环境搭建
boy快快长大
PHPlaravelphp
Laravel01课程介绍1.Laravel2.mac开发环境搭建(通过Homebrew)3.创建一个项目1.Laravel公司中面临着PHP项目与Java项目并行,所以需要我写PHP的项目,公司用的框架就是Laravel,所以在B站上找了一门课学习。课程地址2.mac开发环境搭建(通过Homebrew)安装composer安装composer国内源https://pkg.xyz/php-r"co
- php实现讯飞星火大模型3.5
随风万里无云
aiphp开发语言
前期准备vscode下载安装好composer下载安装好php环境安装好(以上可以自行网上查阅资料)开始实现1.注册讯飞星火用户,获取token使用讯飞星火认知大模型-AI大语言模型-星火大模型-科大讯飞2.修改对应php文件中的key等可以参考文档说明,以及下载demo星火认知大模型WebAPI文档|讯飞开放平台文档中心其中appid等都需要修改还有uid,3.5模型wss://spark-ap
- 适用于 Amazon Step Functions 的低代码可视化新工作流 Workflow Studio, 现已在 Amazon Application Composer 正式发布!
亚马逊云开发者
低代码composer
今天,我们非常欣喜地宣布现已在AmazonApplicationCompose中推出AmazonStepFunctionsWorkflowStud。通过这款全新的集成应用,工作流与应用程序资源开发便可整合到统一的可视化基础设施即代码(IaC)生成器。对于使用AmazonStepFunctionsWorkflowStudio创建工作流与使用AmazonApplicationComposer定义资源,
- TP5.1.35 致命错误: Class 'think\captcha\Captcha' not found的解决方法
RCX明
thinkphp5.1
步骤1、下载安装captcha,(注意TP5.1是2.0版本的)2、拿到think-captcha放到verndor/topthink下3、打开vendor/composer/autoload_psr4.php4、composer下添加autoload_files.php5、编辑autoload_static.php6、编辑autoload_real.php7、好了,可以正常调用了1、下载安装ca
- Amazon Application Composer 正式发布!
今天,我们非常欣喜地宣布现已在AmazonApplicationCompose中推出AmazonStepFunctionsWorkflowStud。通过这款全新的集成应用,工作流与应用程序资源开发便可整合到统一的可视化基础设施即代码(IaC)生成器。对于使用AmazonStepFunctionsWorkflowStudio创建工作流与使用AmazonApplicationComposer定义资源,
- 记一次PHP并发性能调优实战 -- 性能提升104%
PHP9年架构师
适合阅读人群文中的调优思路无论是php,java,还是其他任何语言都是用.如果你有php使用经验,那肯定就更好了业务背景框架及相应环境laravel5.7,mysql5.7,redis5,nginx1.15centos7.5bbrdocker,docker-compose阿里云4C和8G问题背景php已经开启opcache,laravel也运行了optimize命令进行优化,composer也进行
- PHP,安卓,UI,java,linux视频教程合集
cocos2d-x小菜
javaUIlinuxPHPandroid
╔-----------------------------------╗┆
- zookeeper admin 笔记
braveCS
zookeeper
Required Software
1) JDK>=1.6
2)推荐使用ensemble的ZooKeeper(至少3台),并run on separate machines
3)在Yahoo!,zk配置在特定的RHEL boxes里,2个cpu,2G内存,80G硬盘
数据和日志目录
1)数据目录里的文件是zk节点的持久化备份,包括快照和事务日
- Spring配置多个连接池
easterfly
spring
项目中需要同时连接多个数据库的时候,如何才能在需要用到哪个数据库就连接哪个数据库呢?
Spring中有关于dataSource的配置:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
&nb
- Mysql
171815164
mysql
例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WI
TH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql服务器,并使用mypassword作
- CommonDAO(公共/基础DAO)
g21121
DAO
好久没有更新博客了,最近一段时间工作比较忙,所以请见谅,无论你是爱看呢还是爱看呢还是爱看呢,总之或许对你有些帮助。
DAO(Data Access Object)是一个数据访问(顾名思义就是与数据库打交道)接口,DAO一般在业
- 直言有讳
永夜-极光
感悟随笔
1.转载地址:http://blog.csdn.net/jasonblog/article/details/10813313
精华:
“直言有讳”是阿里巴巴提倡的一种观念,而我在此之前并没有很深刻的认识。为什么呢?就好比是读书时候做阅读理解,我喜欢我自己的解读,并不喜欢老师给的意思。在这里也是。我自己坚持的原则是互相尊重,我觉得阿里巴巴很多价值观其实是基本的做人
- 安装CentOS 7 和Win 7后,Win7 引导丢失
随便小屋
centos
一般安装双系统的顺序是先装Win7,然后在安装CentOS,这样CentOS可以引导WIN 7启动。但安装CentOS7后,却找不到Win7 的引导,稍微修改一点东西即可。
一、首先具有root 的权限。
即进入Terminal后输入命令su,然后输入密码即可
二、利用vim编辑器打开/boot/grub2/grub.cfg文件进行修改
v
- Oracle备份与恢复案例
aijuans
oracle
Oracle备份与恢复案例
一. 理解什么是数据库恢复当我们使用一个数据库时,总希望数据库的内容是可靠的、正确的,但由于计算机系统的故障(硬件故障、软件故障、网络故障、进程故障和系统故障)影响数据库系统的操作,影响数据库中数据的正确性,甚至破坏数据库,使数据库中全部或部分数据丢失。因此当发生上述故障后,希望能重构这个完整的数据库,该处理称为数据库恢复。恢复过程大致可以分为复原(Restore)与
- JavaEE开源快速开发平台G4Studio v5.0发布
無為子
我非常高兴地宣布,今天我们最新的JavaEE开源快速开发平台G4Studio_V5.0版本已经正式发布。
访问G4Studio网站
http://www.g4it.org
2013-04-06 发布G4Studio_V5.0版本
功能新增
(1). 新增了调用Oracle存储过程返回游标,并将游标映射为Java List集合对象的标
- Oracle显示根据高考分数模拟录取
百合不是茶
PL/SQL编程oracle例子模拟高考录取学习交流
题目要求:
1,创建student表和result表
2,pl/sql对学生的成绩数据进行处理
3,处理的逻辑是根据每门专业课的最低分线和总分的最低分数线自动的将录取和落选
1,创建student表,和result表
学生信息表;
create table student(
student_id number primary key,--学生id
- 优秀的领导与差劲的领导
bijian1013
领导管理团队
责任
优秀的领导:优秀的领导总是对他所负责的项目担负起责任。如果项目不幸失败了,那么他知道该受责备的人是他自己,并且敢于承认错误。
差劲的领导:差劲的领导觉得这不是他的问题,因此他会想方设法证明是他的团队不行,或是将责任归咎于团队中他不喜欢的那几个成员身上。
努力工作
优秀的领导:团队领导应该是团队成员的榜样。至少,他应该与团队中的其他成员一样努力工作。这仅仅因为他
- js函数在浏览器下的兼容
Bill_chen
jquery浏览器IEDWRext
做前端开发的工程师,少不了要用FF进行测试,纯js函数在不同浏览器下,名称也可能不同。对于IE6和FF,取得下一结点的函数就不尽相同:
IE6:node.nextSibling,对于FF是不能识别的;
FF:node.nextElementSibling,对于IE是不能识别的;
兼容解决方式:var Div = node.nextSibl
- 【JVM四】老年代垃圾回收:吞吐量垃圾收集器(Throughput GC)
bit1129
垃圾回收
吞吐量与用户线程暂停时间
衡量垃圾回收算法优劣的指标有两个:
吞吐量越高,则算法越好
暂停时间越短,则算法越好
首先说明吞吐量和暂停时间的含义。
垃圾回收时,JVM会启动几个特定的GC线程来完成垃圾回收的任务,这些GC线程与应用的用户线程产生竞争关系,共同竞争处理器资源以及CPU的执行时间。GC线程不会对用户带来的任何价值,因此,好的GC应该占
- J2EE监听器和过滤器基础
白糖_
J2EE
Servlet程序由Servlet,Filter和Listener组成,其中监听器用来监听Servlet容器上下文。
监听器通常分三类:基于Servlet上下文的ServletContex监听,基于会话的HttpSession监听和基于请求的ServletRequest监听。
ServletContex监听器
ServletContex又叫application
- 博弈AngularJS讲义(16) - 提供者
boyitech
jsAngularJSapiAngularProvider
Angular框架提供了强大的依赖注入机制,这一切都是有注入器(injector)完成. 注入器会自动实例化服务组件和符合Angular API规则的特殊对象,例如控制器,指令,过滤器动画等。
那注入器怎么知道如何去创建这些特殊的对象呢? Angular提供了5种方式让注入器创建对象,其中最基础的方式就是提供者(provider), 其余四种方式(Value, Fac
- java-写一函数f(a,b),它带有两个字符串参数并返回一串字符,该字符串只包含在两个串中都有的并按照在a中的顺序。
bylijinnan
java
public class CommonSubSequence {
/**
* 题目:写一函数f(a,b),它带有两个字符串参数并返回一串字符,该字符串只包含在两个串中都有的并按照在a中的顺序。
* 写一个版本算法复杂度O(N^2)和一个O(N) 。
*
* O(N^2):对于a中的每个字符,遍历b中的每个字符,如果相同,则拷贝到新字符串中。
* O(
- sqlserver 2000 无法验证产品密钥
Chen.H
sqlwindowsSQL ServerMicrosoft
在 Service Pack 4 (SP 4), 是运行 Microsoft Windows Server 2003、 Microsoft Windows Storage Server 2003 或 Microsoft Windows 2000 服务器上您尝试安装 Microsoft SQL Server 2000 通过卷许可协议 (VLA) 媒体。 这样做, 收到以下错误信息CD KEY的 SQ
- [新概念武器]气象战争
comsci
气象战争的发动者必须是拥有发射深空航天器能力的国家或者组织....
原因如下:
地球上的气候变化和大气层中的云层涡旋场有密切的关系,而维持一个在大气层某个层次
- oracle 中 rollup、cube、grouping 使用详解
daizj
oraclegroupingrollupcube
oracle 中 rollup、cube、grouping 使用详解 -- 使用oracle 样例表演示 转自namesliu
-- 使用oracle 的样列库,演示 rollup, cube, grouping 的用法与使用场景
--- ROLLUP , 为了理解分组的成员数量,我增加了 分组的计数 COUNT(SAL)
- 技术资料汇总分享
Dead_knight
技术资料汇总 分享
本人汇总的技术资料,分享出来,希望对大家有用。
http://pan.baidu.com/s/1jGr56uE
资料主要包含:
Workflow->工作流相关理论、框架(OSWorkflow、JBPM、Activiti、fireflow...)
Security->java安全相关资料(SSL、SSO、SpringSecurity、Shiro、JAAS...)
Ser
- 初一下学期难记忆单词背诵第一课
dcj3sjt126com
englishword
could 能够
minute 分钟
Tuesday 星期二
February 二月
eighteenth 第十八
listen 听
careful 小心的,仔细的
short 短的
heavy 重的
empty 空的
certainly 当然
carry 携带;搬运
tape 磁带
basket 蓝子
bottle 瓶
juice 汁,果汁
head 头;头部
- 截取视图的图片, 然后分享出去
dcj3sjt126com
OSObjective-C
OS 7 has a new method that allows you to draw a view hierarchy into the current graphics context. This can be used to get an UIImage very fast.
I implemented a category method on UIView to get the vi
- MySql重置密码
fanxiaolong
MySql重置密码
方法一:
在my.ini的[mysqld]字段加入:
skip-grant-tables
重启mysql服务,这时的mysql不需要密码即可登录数据库
然后进入mysql
mysql>use mysql;
mysql>更新 user set password=password('新密码') WHERE User='root';
mysq
- Ehcache(03)——Ehcache中储存缓存的方式
234390216
ehcacheMemoryStoreDiskStore存储驱除策略
Ehcache中储存缓存的方式
目录
1 堆内存(MemoryStore)
1.1 指定可用内存
1.2 驱除策略
1.3 元素过期
2 &nbs
- spring mvc中的@propertysource
jackyrong
spring mvc
在spring mvc中,在配置文件中的东西,可以在java代码中通过注解进行读取了:
@PropertySource 在spring 3.1中开始引入
比如有配置文件
config.properties
mongodb.url=1.2.3.4
mongodb.db=hello
则代码中
@PropertySource(&
- 重学单例模式
lanqiu17
单例Singleton模式
最近在重新学习设计模式,感觉对模式理解更加深刻。觉得有必要记下来。
第一个学的就是单例模式,单例模式估计是最好理解的模式了。它的作用就是防止外部创建实例,保证只有一个实例。
单例模式的常用实现方式有两种,就人们熟知的饱汉式与饥汉式,具体就不多说了。这里说下其他的实现方式
静态内部类方式:
package test.pattern.singleton.statics;
publ
- .NET开源核心运行时,且行且珍惜
netcome
java.net开源
背景
2014年11月12日,ASP.NET之父、微软云计算与企业级产品工程部执行副总裁Scott Guthrie,在Connect全球开发者在线会议上宣布,微软将开源全部.NET核心运行时,并将.NET 扩展为可在 Linux 和 Mac OS 平台上运行。.NET核心运行时将基于MIT开源许可协议发布,其中将包括执行.NET代码所需的一切项目——CLR、JIT编译器、垃圾收集器(GC)和核心
- 使用oscahe缓存技术减少与数据库的频繁交互
Everyday都不同
Web高并发oscahe缓存
此前一直不知道缓存的具体实现,只知道是把数据存储在内存中,以便下次直接从内存中读取。对于缓存的使用也没有概念,觉得缓存技术是一个比较”神秘陌生“的领域。但最近要用到缓存技术,发现还是很有必要一探究竟的。
缓存技术使用背景:一般来说,对于web项目,如果我们要什么数据直接jdbc查库好了,但是在遇到高并发的情形下,不可能每一次都是去查数据库,因为这样在高并发的情形下显得不太合理——
- Spring+Mybatis 手动控制事务
toknowme
mybatis
@Override
public boolean testDelete(String jobCode) throws Exception {
boolean flag = false;
&nbs
- 菜鸟级的android程序员面试时候需要掌握的知识点
xp9802
android
熟悉Android开发架构和API调用
掌握APP适应不同型号手机屏幕开发技巧
熟悉Android下的数据存储
熟练Android Debug Bridge Tool
熟练Eclipse/ADT及相关工具
熟悉Android框架原理及Activity生命周期
熟练进行Android UI布局
熟练使用SQLite数据库;
熟悉Android下网络通信机制,S