摘要: && 写法1:if [ $str=a -a $str=b ] 写法2:if [ $str=a ] && [ $str=b ] ||写法1:if [ $str=a -o $str=b ] 写法2:if [ $str=a ] || [ $str=b ] 阅读全文
posted @ 2020-01-02 15:35 liansng 阅读(952) 评论(0) 推荐(0)
摘要: 方法1: git fetch origin branchName:branchName 可以把远程某各分支拉去到本地的branchname下,如果没有branchname,则会在本地新建branchname git checkout branchName 然后切换分支 方法2: git co mas 阅读全文
posted @ 2017-11-17 10:22 liansng 阅读(1456) 评论(0) 推荐(0)
摘要: http://blog-en.mamp.info/2015/07/how-to-use-mysql-5-6-with-mamp-and-mamp.html 阅读全文
posted @ 2017-10-18 22:02 liansng 阅读(115) 评论(0) 推荐(0)
摘要: Centos7-PHP7.1-Nginx Installing PHP 7.1 on CentOS 7 with Nginx 1. Install Nginx yum install nginx 2. Repo's for PHP 7.1 Unfortionally PHP7.1 is not av 阅读全文
posted @ 2017-10-17 11:54 liansng 阅读(5095) 评论(0) 推荐(0)
摘要: composer create-project laravel/laravel --prefer-dist 阅读全文
posted @ 2017-10-17 11:50 liansng 阅读(106) 评论(0) 推荐(0)
摘要: 1. curl -sS https://getcomposer.org/installer | php 2. sudo mv composer.phar /usr/local/bin/composer 阅读全文
posted @ 2017-10-16 22:01 liansng 阅读(109) 评论(0) 推荐(0)
摘要: composer config -g repo.packagist composer https://packagist.phpcomposer.com 阅读全文
posted @ 2017-10-16 21:59 liansng 阅读(182) 评论(0) 推荐(0)