随笔分类 - ubuntu\php\容器化开发
ubuntu\php\容器化开发
摘要:1、_initialize()方法是在任何方法执行之前,都要执行的,当然也包括_ _构造构造函数。 也就是说如果存在_initialize()函数,调用对象的任何方法都会导致_initialize()函数的自动调用, 而_construct构造函数仅仅在创建对象的时候调用一次,跟其它方法调用没有关系
阅读全文
摘要:在宝塔面板站点中增加相应配置: location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; }
阅读全文
摘要:好记性不如烂笔头,记录一下。 安装了MySQL默认是拒绝远程连接的。 首先进入数据库,使用系统数据库mysql。 mysql -u root -p #回车,然后输入则使用了系统数据库mysql -u root@localhost -p #密码为空 接着对系统数据库的root账户设置远程访问的密码,与
阅读全文
摘要:centos最最常用的防火墙命令 crntos目前有两种防火墙,低版本centos用的iptable高版本的用的是firewall 一、iptables防火墙 1、基本操作 # 查看防火墙状态service iptables status # 停止防火墙service iptables stop #
阅读全文
摘要:官网 https://www.bt.cn/ 常用命令: https://www.chenxunyun.com/article/168.html 入门与使用 https://blog.csdn.net/arisono/article/details/108384375 安装失败: 宝塔安装失败提示se
阅读全文
摘要:默认情况下:ubuntu中ssh未启用root,所以root是无法使用sftp登录并上传文件的。 具体步骤如下: debian里root账户默认没有密码,但账户锁定。 当需要root权限时, 直接执行 sudo su 即可切换为root用户。 重新开启root账号,在命令行下执行 sudo pass
阅读全文
摘要:在终端输入: mysql -u root -p显示:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' 首先命令bai行判断mysql是否正常启动,输入命令ps -ef | grep mys
阅读全文
摘要:Linux/Ubuntu+Nginx+Mysql+PHP 搭建wordpress 连接地址: https://segmentfault.com/a/1190000016378855 以下方式为不使用nginx方式: 首先用putty远程连接云主机。百度搜索putty第一个下载即可。 端口默认就是22
阅读全文
摘要:https://blog.csdn.net/qq84395064/article/details/82701761 一、下载并安装mysql sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-ge
阅读全文
摘要:错误方式:开始使用时报以下错误 参考:https://blog.csdn.net/weixin_44854669/article/details/106551045 正确方式: 原来是路径不正确:应该加上当前用户的路径,在这里是/home/gougou 其实我们在putty登录后使用pwd命令查看当
阅读全文
摘要:ubuntu64位 18.04(开发使用桌面版本) Nginx PHP7.3 开发工具:PHPStorm 其他技术栈:laravel、VUE、NodeJs https://laravel.com/ https://laravelacademy.org/laravel-docs-5_5 框架文档 ht
阅读全文
摘要:还是老问题 重点重点: https://blog.csdn.net/Loisleen/article/details/84975165#1install_the_gcc_make_perl_packages_14 终于成功
阅读全文
摘要:1.无法访问nginx到发布的站点,但是使用原配置(nginx.conf)却可以。使用新建的配置conf.d/netcore.conf不行。 2.在windows浏览中访问http://xxx.xxx.xxx会自动转到https://xxx.xxx.xxx:5001 3.查看了nginx访问日志,可
阅读全文
摘要:#虚拟主机的配置server {#监听端口listen 80;#服务器域名server_name localhost;#网页的默认编码#charset koi8r;#访问该虚拟主机的日志位置#access_log /var/log/nginx/host.access.log main;#根据目录配置
阅读全文
摘要:#全局配置 # For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: ht
阅读全文
摘要:1.ctrl+alt+f2切换到命令界面 2.ifconfig查看IP 或者IP ADDR(en33 inter) 3.使用putty终端进行交互式操作 4.shell:提供用户输入的命令解释器 查看nginx是否运行 Linux每个应用运行都会产生一个进程,那么我们就可以通过查看Nginx进程是否
阅读全文