Loading... ## 修改的配置文件位置 该怎么改网上的教程已经很多,但是到底在哪个文件的什么地方修改,如何生效这才是根本问题。 ```apache set_real_ip_from 0.0.0.0/0; real_ip_header X-Forwarded-For; ##Nginx 设置严格域名校验 server { listen 80 default_server; listen 443 ssl default_server; ssl_reject_handshake on; return 444; } ```  ```apache 删除cookie时间 session.gc_probability = 1 session.gc_divisor = 100000 等于10000分之一的几率删除cookie cookie 有效时间 session.gc_maxlifetime = 1296000 session.cookie_lifetime = 1296000 PHP 内设置过期时间 $lifeTime = 1296000; setcookie(session_name(), session_id(), time() + $lifeTime, "/"); ``` ```apache ##程序永久运行## nohup ./go-music_linux_x86 ``` ```apache ##mysql 错误 SQL Error: 1146解决方法## 这个问题的根源在于,在 MySQL 中,数据库和表其实就是数据目录下的目录和文件,因而,操作系统的敏感性决定数据库和表命名的大小写敏感。 这就意味着数据库和表名在 Windows 中是大小写不敏感的,而在大多数类型的 Unix/Linux 系统中是大小写敏感的。 MySQL大小写敏感可以通过配置文件的lower_case_table_names参数来控制。 LINUX: 编辑/etc/my.cnf文件,在[mysqld]节下 添加 lower_case_table_names=1 参数,并设置相应的值 (备注:为0时大小写敏感,为1时大小写不敏感,默认为0)。 ``` Last modification:April 2, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏