Archive for the ‘Linux’ Category

[Linux] linux eva

2022.4 30

近20年前在linux中运行的Eva,还是腾讯出的linux版本的QQ。 Read the rest of this entry

[AMP] Mysql 修改 max_allowed_packet

2022.3 18

今天在往mysql中上传文件的时候,发现有的文件插入失败。 经过检查是max_allowed_packet 这个参数决定的。 修改my.ini 中 max_allowed_packet = 10M 就可以了。 Read the rest of this entry

[Linux] 修改php-fpm配置

2022.3 15

服务器是阿里云的最低配置,内存只有1G。 刚开始的时候,mysql用的是默认配置,时不时被kill掉。后来修改了mysql的配置就没事了。 最近登陆wordpress后台,感觉太慢了。 从网上 搜了下,修改了php-fpm的配置, 从pm = dynamic  修改 Read the rest of this entry

[Linux] 413 Request Entity Too Large

2020.2 15

Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page. 今天在上传图片的时候怎么也能上传成功。初步判断是文件大小导致的。修改php.ini中upload_max_filesize = 6M … Read the rest of this entry

[Linux] telnet 访问服务器没有开放端口

2017.12 23

客户机IP:192.168.10.60 服务器IP:172.172.1.1 服务器未开放6636 端口。 在客户机执行命令:telnet 172.172.1.1 6636 192.168.10.60 MAC: 40:8d:5c:fb:ca:18 网关 192.168.10.1 MAC 14:3d:f2:c9:01:a1 第一个数据包: 1 0.000000 192.168.10.60 1… Read the rest of this entry

[Linux] 解决SELinux对网站目录权限控制的不当的问题

2017.12 14

最近在安装cacti,第一遍没有安装成功。准备重新安装的时候出现了403错误。 cacti文件夹是直接用wget下载的,因为原先没有出现403错误,应该不是httpd配置问题。 最后找到了是SELinux的问题。 [root@localhost ~]# ls -lZ cacti-1.1.28 -rw-rw-r& Read the rest of this entry

[Linux] Failed to Create Volatitle Files and Directories

2016.7 21

linux是装在虚拟机中的,不知怎么搞的,ssh连接不上,直接登录提示密码错误。只好硬重启。 重启后发现启动不起来,出现上面的提示。百度搜到的内容很少,google又上不去,只好用bing。 最后用光盘启动,chroot了一下,东西还 Read the rest of this entry

[Linux] 在linux中使用mount挂载带分区的镜像文件

2016.6 30

由于用老毛桃做启动盘,会破坏数据,所以先备份一下: [root@localhost mnt]# dd if=/dev/sdb of=/mnt/u.xxd bs=20M 把U整个都做成镜像了。 在挂载的时候遇到了问题: [root@localhost mnt]# mount /mnt/u.xxd /sdb3 mount: mount point /sdb3 does not exist [root… Read the rest of this entry

[Shell编程] SHELL中如何获得管道前面的命令的返回值

2015.9 1

To know the exit status of the elements of a pipeline cmd1 | cmd2 | cmd3 bash The exit codes are provided in the PIPESTATUS special array. cmd1 exit code is in ${PIPESTATUS[0]}, cmd3 exit code in … Read the rest of this entry

[Shell编程] awk 输出单引号双引号

2015.9 1

输出双引号 双引号中加反斜杠再加引号。 awk ‘{print “\””}’ 输出单引号:双引号中加双单引号,中间再加 反斜杠和单引号 awk ‘{print ” ‘ \’ ‘ “}’ Read the rest of this entry