- 浏览: 2539259 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Laravel PHP Framework(1)Introduction and Installation
Check PHP is on my Local Machine
> php --version
PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
I am following the document to do with Laravel 5.6
PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
> composer --version
Composer version 1.6.5 2018-05-04 11:44:59
Download the installer
> composer global require "laravel/installer"
Make sure it is in the PATH
export PATH=/Users/hluo/.composer/vendor/bin:$PATH
Check the version
> laravel -V
Laravel Installer 2.0.1
List all the command
> laravel list
Laravel Installer 2.0.1
Usage:
command [options] [arguments]
Create a sample project to demo
> laravel new blogdemo
It will create a project with all dependencies in blogdemo directory.
You can find all PHP package from here
https://packagist.org/
Make sublime open current folder
> sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
> subl .
It is pretty easy, that is cool.
> php artisan -V
Laravel Framework 5.6.29
Set Up MySQL 5.7 On MAC
https://dev.mysql.com/downloads/mysql/5.7.html#downloads
Temp password for root t?%VFE>kH4(M
Once we download the mysql server, we can download the MySQL Workbench and MySQL Shell.
In the Workbench, we can start one MySQL instance and reset the root password as we needed.
Then I can use the username and password to login in that console.
> mysql -h localhost -u carl -p
Create the database we need
> create database sillycat;
Grant the permission
> GRANT ALL ON sillycat.* TO sillycat@localhost IDENTIFIED BY '12345678';
Then we can logon on that database easily
> mysql -u sillycat -h localhost -p12345678
Import the data into that database
> mysql -u sillycat -h localhost -p12345678 sillycat </Users/hluo/work/sillycat/docs/sillycat.sql
I got the latest nodeJS environment
> node --version && npm --version
v8.11.3
5.6.0
When I do
> composer install
I got the error message about PHP environment
Problem 1
- Installation request for fgrosse/phpasn1 2.0.1 -> satisfiable by fgrosse/phpasn1[2.0.1].
- fgrosse/phpasn1 2.0.1 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 2
- Installation request for laravel/horizon v1.2.3 -> satisfiable by laravel/horizon[v1.2.3].
- laravel/horizon v1.2.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
Upgrade my PHP
https://php-osx.liip.ch/
> curl -s http://php-osx.liip.ch/install.sh | bash -s 7.2
Add this to the PATH
export PATH=/usr/local/php5/bin:$PATH
> php --version
PHP 7.2.9 (cli) (built: Aug 21 2018 07:42:00) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
When I go to the directory, I saw the file /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/gmp.so
Find the ini file
> php --ini
Configuration File (php.ini) Path: /usr/local/php5/lib
Loaded Configuration File: /usr/local/php5/lib/php.ini
> sudo vi /usr/local/php5/lib/php.ini
extension=gmp
Problem solved.
Set Up Redis on Local Machine
> wget http://download.redis.io/releases/redis-4.0.11.tar.gz
Unzip the file and go to that directory
> make
> make PREFIX=/Users/hluo/tool/redis-4.0.11 install
> sudo ln -s /Users/hluo/tool/redis-4.0.11 /opt/redis-4.0.11
> redis-cli --version
redis-cli 4.0.11
We can change the redis.conf file to enable all the IP and port
bind 0.0.0.0
Command to run the server
> redis-server
Or
> redis-server ./redis.conf
Verify it is running
> redis-cli -h localhost -p 6379 ping
PONG
References:
https://laravel.com/
https://stackoverflow.com/questions/26402472/open-a-folder-in-sublime-text-3-using-command-line
https://packagist.org/
https://laracasts.com/series/laravel-from-scratch-2017/episodes/2?autoplay=true
Check PHP is on my Local Machine
> php --version
PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
I am following the document to do with Laravel 5.6
PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
> composer --version
Composer version 1.6.5 2018-05-04 11:44:59
Download the installer
> composer global require "laravel/installer"
Make sure it is in the PATH
export PATH=/Users/hluo/.composer/vendor/bin:$PATH
Check the version
> laravel -V
Laravel Installer 2.0.1
List all the command
> laravel list
Laravel Installer 2.0.1
Usage:
command [options] [arguments]
Create a sample project to demo
> laravel new blogdemo
It will create a project with all dependencies in blogdemo directory.
You can find all PHP package from here
https://packagist.org/
Make sublime open current folder
> sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
> subl .
It is pretty easy, that is cool.
> php artisan -V
Laravel Framework 5.6.29
Set Up MySQL 5.7 On MAC
https://dev.mysql.com/downloads/mysql/5.7.html#downloads
Temp password for root t?%VFE>kH4(M
Once we download the mysql server, we can download the MySQL Workbench and MySQL Shell.
In the Workbench, we can start one MySQL instance and reset the root password as we needed.
Then I can use the username and password to login in that console.
> mysql -h localhost -u carl -p
Create the database we need
> create database sillycat;
Grant the permission
> GRANT ALL ON sillycat.* TO sillycat@localhost IDENTIFIED BY '12345678';
Then we can logon on that database easily
> mysql -u sillycat -h localhost -p12345678
Import the data into that database
> mysql -u sillycat -h localhost -p12345678 sillycat </Users/hluo/work/sillycat/docs/sillycat.sql
I got the latest nodeJS environment
> node --version && npm --version
v8.11.3
5.6.0
When I do
> composer install
I got the error message about PHP environment
Problem 1
- Installation request for fgrosse/phpasn1 2.0.1 -> satisfiable by fgrosse/phpasn1[2.0.1].
- fgrosse/phpasn1 2.0.1 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 2
- Installation request for laravel/horizon v1.2.3 -> satisfiable by laravel/horizon[v1.2.3].
- laravel/horizon v1.2.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
Upgrade my PHP
https://php-osx.liip.ch/
> curl -s http://php-osx.liip.ch/install.sh | bash -s 7.2
Add this to the PATH
export PATH=/usr/local/php5/bin:$PATH
> php --version
PHP 7.2.9 (cli) (built: Aug 21 2018 07:42:00) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
When I go to the directory, I saw the file /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/gmp.so
Find the ini file
> php --ini
Configuration File (php.ini) Path: /usr/local/php5/lib
Loaded Configuration File: /usr/local/php5/lib/php.ini
> sudo vi /usr/local/php5/lib/php.ini
extension=gmp
Problem solved.
Set Up Redis on Local Machine
> wget http://download.redis.io/releases/redis-4.0.11.tar.gz
Unzip the file and go to that directory
> make
> make PREFIX=/Users/hluo/tool/redis-4.0.11 install
> sudo ln -s /Users/hluo/tool/redis-4.0.11 /opt/redis-4.0.11
> redis-cli --version
redis-cli 4.0.11
We can change the redis.conf file to enable all the IP and port
bind 0.0.0.0
Command to run the server
> redis-server
Or
> redis-server ./redis.conf
Verify it is running
> redis-cli -h localhost -p 6379 ping
PONG
References:
https://laravel.com/
https://stackoverflow.com/questions/26402472/open-a-folder-in-sublime-text-3-using-command-line
https://packagist.org/
https://laracasts.com/series/laravel-from-scratch-2017/episodes/2?autoplay=true
发表评论
-
Stop Update Here
2020-04-28 09:00 310I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 465NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 361Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 363Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 328Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 419Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 428Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 364Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 444VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 376Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 463NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 413Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 330Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 242GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 443GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 320GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 306Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 310Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 284Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 302Serverless with NodeJS and Tenc ...
相关推荐
Python基于yolo的健身姿势检测与姿态矫正建议系统源代码+使用说明 model:保存模型参数 config.yaml:配置文件 resource:输入文件夹,具有固定的目录结构(动作-视角-标准/错误点) output:输出文件夹,保持和resource相同的目录结构 main.py:实现resource2output方法,将resource中的资源全部提取数据并输出(csv格式)到output的相应位置 tasks:任务文件夹,对于不同的健身任务,分别实现标准性判别方法 keypoint.py:是对yolo模型返回的节点进行对象封装,其中的Keypoint对象封装了返回结果(是一个数组)中各关节位置对应数组中的位置,这样就不需要通过下标直接获取节点,而是通过例如get("l_elbow")的实例方法获取节点 pull_up.py:为具体健身任务实现标准性判别方法,这里是对引体向上的处理 task_processor.py由于main.py是在对resource文件夹中所有资源进行处理,不同的方法将对应不同的处理函数,task_processor.py中实现了TaskProces
精确的作物类型图对于监测种植模式、可持续利用现有自然资源和估算收成至关重要。人工数字化和标注--绘制作物类型图的常用方法--大多费时、费钱,甚至容易出现人为错误。近来,机器学习算法已发展成为利用卫星图像对作物品种进行分类的经济有效的替代方法。为应对最新进展,本研究将采用机器学习算法,利用哨兵-2 图像对孟加拉国西北部(拉杰沙希县戈达加里乡)的 6 种作物类型进行分类。将研究四种机器学习算法(随机森林、人工神经网络、KNN 和支持向量机),以准确绘制作物类型图。
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
资源说明: 为提高弱纹理图像关键目标点的检测识别能力,提出基干深度学习的弱纹理图像关键目标点识别定位方法;构建低光照强度弱纹理图像关键目标点的拓扑特征分布模型,采用透射率作为检测系数,结合亮通道的先验知识,建立像素大数据分布集................................ pdf文件。请使用支持pdf阅读的工具打开.
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
Matlab领域上传的视频均有对应的完整代码,皆可运行,亲测可用,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作
<项目介绍> 编译原理实战之表达式计算器 -------- 不懂运行,下载完可以私聊问,可远程教学 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。 --------
毕业设计&课设-用于 Spring Boot 的开源渗透框架及高危漏洞利用工具 1、该资源内项目代码都经过严格测试运行成功才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
Matlab代码
基于jquery的图表框架
基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用),含有代码注释,新手也可看懂,个人手打98分项目,导师非常认可的高分项目,毕业设计、期末大作业和课程设计高分必看,下载下来,简单部署,就可以使用。该项目可以直接作为毕设、期末大作业使用,代码都在里面,系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值,项目都经过严格调试,确保可以运行! 基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matlab GUI界面的疲劳检测系统源码+文档说明(毕业设计和课程设计都适用)基于matl
计算机图形学之动画和模拟算法:Procedural Animation:碰撞检测与响应.docx
机器学习 Adversarial Examples and Adversarial Training Overview • What are adversarial examples? • Why do they happen? • How can they be used to compromise machine learning systems? • What are the defenses? • How to use adversarial examples to improve machine learning, even when there is no adversary
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
1.版本:matlab2014/2019a/2024a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 替换数据可以直接使用,注释清楚,适合新手
网络安全解读网络安全政策