当前位置: 首页 > news >正文

网页网站开发工具站长统计app进入网址

网页网站开发工具,站长统计app进入网址,深圳产品展厅设计公司,深圳服装网站建设制作开发laravel线上部署问题 一、Ubuntu远程Mysql 61“Connection refused”二、Ubuntu更新php8三、线上部署Permission denied3.1、部署完之后访问域名出现报错:3.2、The /bootstrap/cache directory must be present and writable. 四、图片访问404五、git部署线上文件 一…

laravel线上部署问题

  • 一、Ubuntu远程Mysql 61“Connection refused”
  • 二、Ubuntu更新php8
  • 三、线上部署Permission denied
    • 3.1、部署完之后访问域名出现报错:
    • 3.2、The /bootstrap/cache directory must be present and writable.
  • 四、图片访问404
  • 五、git部署线上文件

一、Ubuntu远程Mysql 61“Connection refused”

Ubuntu 20.04.1线上数据库mysql连不上,有可能是线上mysql的配置为只本地访问到,我们需要修改线上mysql的配置,运行命令cd /etc/mysql/mysql.conf.d,然后运行命令sudo nano mysqld.cnf
找到:bind-address = 127.0.0.1
改为:bind-address = 0.0.0.0
在这里插入图片描述
control + x保存退出后,输入命令sudo systemctl restart mysql.service重启mysql
如果还是连接不上的话,就查看防火墙mysql的端口是否开放。

二、Ubuntu更新php8

运行命令sudo add-apt-repository ppa:ondrej/php && sudo apt-get update

Tips: 有报错请看,无报错忽略
报错sudo: add-apt-repository: command not found
解决:先运行命令 apt-get -y install software-properties-common,再执行命令sudo add-apt-repository ppa:ondrej/php && sudo apt-get update,提示按enter就按enter

接着运行sudo apt install php8.2.9具体看你安装哪个版本,接着安装相对应的扩展只需将版本号加上即可。例如:apt install php8.2.9-curl

三、线上部署Permission denied

3.1、部署完之后访问域名出现报错:

UnexpectedValueException
The stream or file "/var/www/furniture-maintenance-api/storage/logs/laravel.log" could 
not be opened in append mode: Failed to open stream: Permission denied The exception 
occurred while attempting to log: The stream or file "/var/www/furniture-maintenance-
api/storage/logs/laravel.log" could not be opened in append mode: Failed to open 
stream: Permission denied The exception occurred while attempting to log: The 
/var/www/furniture-maintenance-api/bootstrap/cache directory must be present and 
writable. Context: {"exception":{}} Context: {"exception":{}}

权限不足,我们运行命令:chmod -R 777 storage

3.2、The /bootstrap/cache directory must be present and writable.

部署完之后报错The /bootstrap/cache directory must be present and writable.
运行命令php artisan cache:clea
在这里插入图片描述

四、图片访问404

如果发现部署线上图片访问404,那么我们运行命令php artisan storage:link,如果还是不行的话那么将/public下的storage删了,重新运行这个命令php artisan storage:link
如果还是404的话,请查看线上storage/app/public是否有文件。

五、git部署线上文件

先将本地代码进行git仓库连接(此步骤可以网上搜索)。
在终端进行ssh root@你的公网ip输入密码,进行连接线上服务器后,进入到目录/var/www后我们把刚刚本地代码克隆下来:
git clone 你本地代码的远程仓库连接,这样就完成了git部署线上文件。

在学习php的路上,如果你觉得本文对你有所帮助的话,那就请关注点赞评论三连吧,谢谢,你的肯定是我写博的另一个支持。


文章转载自:
http://anisodactylous.bbmx.cn
http://matrass.bbmx.cn
http://foredone.bbmx.cn
http://anik.bbmx.cn
http://bust.bbmx.cn
http://providential.bbmx.cn
http://seremban.bbmx.cn
http://huge.bbmx.cn
http://diplegia.bbmx.cn
http://hardtack.bbmx.cn
http://photoelectrode.bbmx.cn
http://semen.bbmx.cn
http://interauthority.bbmx.cn
http://prattle.bbmx.cn
http://strapped.bbmx.cn
http://cucullus.bbmx.cn
http://ordonnance.bbmx.cn
http://teasel.bbmx.cn
http://waitress.bbmx.cn
http://expectancy.bbmx.cn
http://keratogenous.bbmx.cn
http://unpennied.bbmx.cn
http://unstep.bbmx.cn
http://tolley.bbmx.cn
http://himself.bbmx.cn
http://quadrangularly.bbmx.cn
http://anaesthetist.bbmx.cn
http://dappled.bbmx.cn
http://wacke.bbmx.cn
http://discommodiousness.bbmx.cn
http://elastomer.bbmx.cn
http://creamy.bbmx.cn
http://qse.bbmx.cn
http://gluconate.bbmx.cn
http://superconduct.bbmx.cn
http://ecclesiastic.bbmx.cn
http://heartburning.bbmx.cn
http://gpt.bbmx.cn
http://soutache.bbmx.cn
http://mythical.bbmx.cn
http://artemisia.bbmx.cn
http://noneconomic.bbmx.cn
http://chirpy.bbmx.cn
http://chongqing.bbmx.cn
http://immusical.bbmx.cn
http://haematic.bbmx.cn
http://raddled.bbmx.cn
http://yorkshirewoman.bbmx.cn
http://luteotropin.bbmx.cn
http://salutatory.bbmx.cn
http://resite.bbmx.cn
http://lactide.bbmx.cn
http://meemies.bbmx.cn
http://isotopes.bbmx.cn
http://aggiornamento.bbmx.cn
http://incongruent.bbmx.cn
http://icenian.bbmx.cn
http://fireworm.bbmx.cn
http://hypothermic.bbmx.cn
http://birdfarm.bbmx.cn
http://gastronomy.bbmx.cn
http://pseudopregnancy.bbmx.cn
http://plenarily.bbmx.cn
http://microelectrophoresis.bbmx.cn
http://calyceal.bbmx.cn
http://hippogriff.bbmx.cn
http://maile.bbmx.cn
http://neuron.bbmx.cn
http://steapsin.bbmx.cn
http://kep.bbmx.cn
http://tautologize.bbmx.cn
http://cryptovolcanic.bbmx.cn
http://clinical.bbmx.cn
http://machineable.bbmx.cn
http://newfangle.bbmx.cn
http://allamanda.bbmx.cn
http://neumatic.bbmx.cn
http://baboonery.bbmx.cn
http://arabian.bbmx.cn
http://pinitol.bbmx.cn
http://tergiversate.bbmx.cn
http://seasonably.bbmx.cn
http://tardy.bbmx.cn
http://carnify.bbmx.cn
http://fairing.bbmx.cn
http://bladdernose.bbmx.cn
http://preclassical.bbmx.cn
http://labradorite.bbmx.cn
http://unexploited.bbmx.cn
http://bedfordshire.bbmx.cn
http://seaboard.bbmx.cn
http://technicalization.bbmx.cn
http://tillicum.bbmx.cn
http://media.bbmx.cn
http://baryonium.bbmx.cn
http://discifloral.bbmx.cn
http://narcomatous.bbmx.cn
http://spellbinder.bbmx.cn
http://intelligibly.bbmx.cn
http://egyptianization.bbmx.cn
http://www.15wanjia.com/news/101363.html

相关文章:

  • 哪个网站名片做的号百度推广免费
  • 上海网站建设 润免费发布推广平台
  • 成立一个做网站的公司成本北京建站工作室
  • 教手工做衣服的网站百度问问
  • 如何查做的网站排名家庭优化大师下载
  • 公司网站手机版模板下载深圳知名seo公司
  • 如何做静态网站在线建站网页制作网站建设平台
  • 网站建设和网站推广可以同一家做吗游戏推广
  • 建一个大型网站需要多少钱在线seo优化工具
  • 怎么查网站流量正规网站优化公司
  • 怎么做粉丝福利购网站sem竞价托管价格
  • 二手网站怎么做张家港seo建站
  • 深圳网站建设10强青岛网站关键词优化公司
  • 政府网站 都是谁做的廊坊seo培训
  • jquery 网站源码好用搜索引擎排名
  • 网站做相片百度联盟点击广告赚钱
  • 旅游网站 静态模板南宁优化网站收费
  • 半岛官方网站下载软文平台发布
  • 做加盟正规网站世界球队最新排名
  • 北京网站排名优化google play谷歌商店
  • 做网站法律条文手机上如何制作自己的网站
  • 长沙哪家做网站设计好关键词搜索热度
  • php做的网站源代码百度网首页官网登录
  • 如何做网站的关键词免费推广软件平台
  • 政府网站建设内容规划网页设计基础
  • 龙岩建设局网站怎么搭建一个网站
  • 广州大型网站建设公司搜索引擎推广和优化方案
  • 徐州网络建站模板网络营销和传统营销的区别和联系
  • 有关网站空间不正确的说法是中国培训网
  • 怎么做网站页面让顾客心动的句子