摘要:
1130 - Host '192.168.0.101' is not allowed to connect to this MySQL server 1044 Access denied for user 'tp999'@'%' to database 'tp999' 解决 mysql -u roo 阅读全文
摘要:
mysql 创建用户 创建用户: 方法1,GRANT USAGE ON *.* TO 'tp1'@'localhost' IDENTIFIED BY 'tp1password'; 方法2,GRANT USAGE ON *.* TO 'tp1'@'localhost' IDENTIFIED BY 't 阅读全文
摘要:
1130 - Host '192.168.0.2' is not allowed to connect to this MySQL server 解决 mysql -u root -p 进入mysql use mysql; SELECT host FROM user; 看下都有哪些mysql用户,都 阅读全文
摘要:
中间件别名定义在 /config/middleware.php 中,但如果同时定义了全局中间件,中间件别名就会失效。 解决方法: TP的中间件调用可以直接写中间件类名,默认的命名空间就是 app\http\middleware,不用像 Laravel 那样没新建一个中间件都要去 Kernel.php 阅读全文
摘要:
composer install --ignore-platform-reqs 阅读全文
摘要:
ssh-keygen -o git config --global user.name "输入你的用户名" git config --global user.email "输入你的邮箱" 阅读全文
摘要:
编译安装php 安装依赖 yum -y install epel-release oniguruma oniguruma-devel libxml2 libxml2-devel openssl openssl-devel libcurl libcurl-devel libjpeg libjpeg-d 阅读全文
摘要:
The stream or file "/var/www/blog/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied 解决:让httpd以roo 阅读全文
摘要:
新建用户 adduser ppd 切换到新用户,新建项目 su ppd cd /var/www laravel new blog 进入到apache的配置目录 cd /etc/httpd/conf cp -p httpd.conf httpd.conf.copy vim httpd.conf 找到: 阅读全文
摘要:
安装composer curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer chmod -R 777 /usr/local/bin/composer 新建用户 adduser 阅读全文