星光闪耀有点酷 星光闪耀有点酷
首页
  • 随心随笔

    • 星耀集
    • 热点创作
  • 音乐

    • 尤克里里
  • VuePress
  • Markdown
  • VS Code
  • Node.js
  • 友情链接
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

星光闪耀

做最酷炫的自己
首页
  • 随心随笔

    • 星耀集
    • 热点创作
  • 音乐

    • 尤克里里
  • VuePress
  • Markdown
  • VS Code
  • Node.js
  • 友情链接
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • VuePress

  • Markdown

  • VS Code

  • Node.js

  • phpStudy

  • WordPress

  • Linux

    • Linux tmux rzsz 文件卡死快速退出方法
    • Ubuntu 16.04 PHP升级为PHP 7.4
    • 常用命令总结
    • Nginx配置SSL证书 curl (60) Peer's Certificate issuer is not recognized
  • GitHub

  • uni-app

  • 面试题

  • Office

  • Python

  • 技术
  • Linux
星光闪耀
2023-03-29

常用命令总结

  • 数据库报错

    SET FOREIGN_KEY_CHECKS=0;
    
    1

    把报错的SQL,丢进来,手动执行一下,他还会继续报新的错,把新的sql 在拿进来,再执行,反复操作,直到没报错了

    SET FOREIGN_KEY_CHECKS=1;
    
    1
  • 数据库创建

    CREATE DATABASE `my_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
    use my_db;
    从sql文件导入
    source /path/to/xxx.sql
    
    1
    2
    3
    4
  • Ngnix重启

    cd /etc/nginx
    service nginx restart
    测试配置文件是否存在问题
    nginx -t
    
    1
    2
    3
    4
  • Apache重启

    cd /opt/lampp/etc/
    /opt/lampp/bin/apachectl restart
    
    1
    2
  • supervisord问题

    编辑文件
    cat /etc/supervisord.conf
    
    重启服务
    service supervisord restart
    
    查看任务列表
    service supervisord status
    
    1
    2
    3
    4
    5
    6
    7
    8
  • Git设置

    git config --global user.email "邮箱"
    git config --global user.name "名字"
    
    1
    2
  • zip压缩与解压

    zip -q -r node_modules.zip node_modules
    unzip node_modules.zip
    
    1
    2
  • gzip压缩与解压

    gzip filename.sql
    gunzip filename.sql.gz
    
    1
    2
  • webp转png 图片转换工具

    webp-to-png (opens new window)

  • m4a转mp4 音频转视频

    m4a-to-mp4 (opens new window)

  • 修改文件夹的用户和分组

    chown -R www-data:www-data upgrade
    
    1
  • Linux查看是几核几G

    几核(CPU的数量)
    cat /proc/cpuinfo | grep processor | wc -l
    几G(系统RAM总量,也可以说是运行内存)
    free -h | awk '/^Mem/ {print $2}'
    
    1
    2
    3
    4
  • Linux查看系统版本

    lsb_release -a
    
    1
  • php-fpm相关

    启动
    systemctl start php-fpm
    
    查看状态
    systemctl status php-fpm
    
    在nginx里的配置
    server {
        listen 1234;
        server_name  localhost;
      	root /usr/share/nginx/html/my-site;
      	location / {
              index  index.html index.htm index.php;
              if (!-e $request_filename){
                rewrite ^(.*)$ /index.php?pathInfo=$1;
              }
        }
    
        # pass PHP scripts to FastCGI server
        location ~ \.php$ {
          include fastcgi.conf;
          fastcgi_pass unix:/var/run/php-fpm/www.sock;
          #fastcgi_index  index.php;
          fastcgi_read_timeout 600;
        }
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
  • 好用的免费ChatGPT

    免费ChatGPT (opens new window)

    鱼聪明 (opens new window)

  • More

上次更新: 2023/07/10, 10:06:21
Ubuntu 16.04 PHP升级为PHP 7.4
Nginx配置SSL证书 curl (60) Peer's Certificate issuer is not recognized

← Ubuntu 16.04 PHP升级为PHP 7.4 Nginx配置SSL证书 curl (60) Peer's Certificate issuer is not recognized→

最近更新
01
高效学习的方法
11-20
02
学习计划
11-13
03
Nginx配置SSL证书 curl (60) Peer's Certificate issuer is not recognized
05-10
更多文章>
Theme by Vdoing | Copyright © 2013-2024 星光闪耀有点酷 | MIT License
苏公网安备 32072402010152号 | 苏ICP备2022047659号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式