随笔记录,基础,辛蕾亓
- 1,使用composer 语法,下载七牛云的sdk
- composer require qiniu/php-sdk
- 2,TP5定义路由,controller/v1/test 控制器文件text
- Route::any("as","v1.test/test1"); //自定义的路由 Route.php文件里面
- 2,将安装node.js 安装的文件夹里面的npm 地址,加到环境变量就可以用
- D:\nodejs\node_modules\npm //加到环境变量里面就可以使用 npm 了
- 3,安装了node.js ,将bower 变为全局变量
- npm install -g bower 用的指令是全局安装bower
- bower -v就可以显示版本号了,说明安装成功
- 4,fastadmin 路由接口
- 这是 localhost:6868/api.php/test/test1 设置路由入口文件,之后的 postman 测试接口
- localhost:6868/index.php/api/test/test1 这是没改路由文件的接口
- 5,TP5查询语句,自己的paginate分页
- paginate(10, false, ['var_page'=>'p', 'query' => \think\Request::instance()->param() ])
- 6,删除git存在的远程仓库的地址
- git remote rm origin
- 7,git 填写密码错误,可以重置
- git config --system --unset credential.helper
- 8,删除二级 生成的curd
- php think crud -t course_add_zi -c article/course_add_zi -d 1
- 9,vue init webpack-simple demo 下载的事2.9左右的vue项目
- 10,vue init webpack demo 下载的事2.0的vue项目
- 11,
- // 驱动方式
- 'type' => 'memcache',
- // 缓存保存目录
- 'host' => '127.0.0.1',
- 'port' => '11211',
- 'password'=> '',
- 'timeout' => 3600
- 12,
- public function query($sql = '') {
- $pdo = new \PDO( 'mysql:host=106.12.172.141:3306;dbname=数据库名;charset=utf8','用户名','密码');
- $result = $pdo->query($sql);
- return $result->fetchAll(\PDO::FETCH_ASSOC);
- }
- 13,npm run build 打包vue项目
- 14 ,http://idea.medeming.com/jets/images/jihuoma.zip 激活码
- 15,小皮面板 域名文件
- server {
- listen 9092;
- server_name localhost localhost;
- root "D:/phpstudy_pro/WWW/www/public";
- location / {
- index index.php index.html error/index.html;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?s=/$1 last;
- break;
- }
- autoindex off;
- }
- location ~ \.php(.*)$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- include fastcgi_params;
- include fastcgi.conf;
- }
- }
- 16 ,php分页 pid
- paginate(10, false, ['var_page'=>'p', 'query' => \think\Request::instance()->param() ])
- 17,下载七牛云 composer require qiniu/php-sdk 插件
- 18,git config --system --unset credential.helper git 填写密码错误(可以重置)
- 19,阳光守护(控制手机???)
快递鸟 腾讯云 七牛云 微信openid 微信支付
- 遇到了坑在写
祝你开心=.=

浙公网安备 33010602011771号