随笔分类 -  linux

linux
摘要:好记性不如烂笔头,记录一下。 安装了MySQL默认是拒绝远程连接的。 首先进入数据库,使用系统数据库mysql。 mysql -u root -p #回车,然后输入则使用了系统数据库mysql -u root@localhost -p #密码为空 接着对系统数据库的root账户设置远程访问的密码,与 阅读全文
posted @ 2021-01-18 15:10 无聊的蚂蚁 阅读(829) 评论(0) 推荐(0) 编辑
摘要:centos最最常用的防火墙命令 crntos目前有两种防火墙,低版本centos用的iptable高版本的用的是firewall 一、iptables防火墙 1、基本操作 # 查看防火墙状态service iptables status # 停止防火墙service iptables stop # 阅读全文
posted @ 2021-01-18 14:38 无聊的蚂蚁 阅读(929) 评论(0) 推荐(0) 编辑
摘要:官网 https://www.bt.cn/ 常用命令: https://www.chenxunyun.com/article/168.html 入门与使用 https://blog.csdn.net/arisono/article/details/108384375 安装失败: 宝塔安装失败提示se 阅读全文
posted @ 2020-12-11 14:05 无聊的蚂蚁 阅读(256) 评论(0) 推荐(0) 编辑
摘要:默认情况下:ubuntu中ssh未启用root,所以root是无法使用sftp登录并上传文件的。 具体步骤如下: debian里root账户默认没有密码,但账户锁定。 当需要root权限时, 直接执行 sudo su 即可切换为root用户。 重新开启root账号,在命令行下执行 sudo pass 阅读全文
posted @ 2020-11-25 14:16 无聊的蚂蚁 阅读(461) 评论(0) 推荐(0) 编辑
摘要:在终端输入: mysql -u root -p显示:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' 首先命令bai行判断mysql是否正常启动,输入命令ps -ef | grep mys 阅读全文
posted @ 2020-11-19 17:40 无聊的蚂蚁 阅读(2496) 评论(0) 推荐(0) 编辑
摘要:错误方式:开始使用时报以下错误 参考:https://blog.csdn.net/weixin_44854669/article/details/106551045 正确方式: 原来是路径不正确:应该加上当前用户的路径,在这里是/home/gougou 其实我们在putty登录后使用pwd命令查看当 阅读全文
posted @ 2020-07-15 14:39 无聊的蚂蚁 阅读(1876) 评论(0) 推荐(0) 编辑
摘要:ubuntu64位 18.04(开发使用桌面版本) Nginx PHP7.3 开发工具:PHPStorm 其他技术栈:laravel、VUE、NodeJs https://laravel.com/ https://laravelacademy.org/laravel-docs-5_5 框架文档 ht 阅读全文
posted @ 2019-05-22 15:48 无聊的蚂蚁 阅读(141) 评论(0) 推荐(0) 编辑
摘要:#虚拟主机的配置server {#监听端口listen 80;#服务器域名server_name localhost;#网页的默认编码#charset koi8r;#访问该虚拟主机的日志位置#access_log /var/log/nginx/host.access.log main;#根据目录配置 阅读全文
posted @ 2019-02-26 18:32 无聊的蚂蚁 阅读(237) 评论(0) 推荐(0) 编辑
摘要:#全局配置 # For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: ht 阅读全文
posted @ 2019-02-26 12:30 无聊的蚂蚁 阅读(210) 评论(0) 推荐(0) 编辑
摘要:1.ctrl+alt+f2切换到命令界面 2.ifconfig查看IP 或者IP ADDR(en33 inter) 3.使用putty终端进行交互式操作 4.shell:提供用户输入的命令解释器 查看nginx是否运行 Linux每个应用运行都会产生一个进程,那么我们就可以通过查看Nginx进程是否 阅读全文
posted @ 2019-02-26 09:31 无聊的蚂蚁 阅读(1357) 评论(0) 推荐(0) 编辑