Skip to content

倪之帅 Victor 个人主页

  • Home
  • Tech
    • Linux
    • LNMP
    • Mac
    • Mobile
    • Products
    • SMS
  • 英语学习

About nizhishuai

Hide

May 16, 2018 / Linux

Nginx 502 Bad Gateway solution

1.FastCGI take long time, you need add this configs to nginx.conf fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; 2 FastCGI Buffer not enough, add to nginx.conf fastcgi_buffer_size 32k; fastcgi_buffers 8 32k; 3. Proxy Buffer not enough, add to nginx.conf proxy_buffer_size 16k; proxy_buffers 4 16k; 4. php-fpm log size more then 2G

Continue Reading
February 19, 2016 / Linux

Set Up vsftpd on CentOS 6 and CentOS 7

You can quickly install vsftpd on your virtual private server in the command line: sudo yum install vsftpd We also need to install the FTP client, so that we can connect to an FTP server: sudo yum install ftp Once the files finish downloading, vsftpd will be on your VPS. Generally speaking, the virtual private …

Continue Reading
February 16, 2015 / Linux

Warning: include_once(): Unable to allocate memory for pool

/etc/php.d/apc.ini For the people having this problem, please specify you .ini settings. Specifically your apc.mmap_file_mask setting. For file-backed mmap, it should be set to something like: apc.mmap_file_mask=/tmp/apc.XXXXXX To mmap directly from /dev/zero, use: apc.mmap_file_mask=/dev/zero For POSIX-compliant shared-memory-backed mmap, use: apc.mmap_file_mask=/apc.shm.XXXXXX

Continue Reading
August 29, 2015 / Linux

linux send email mutt tool

yum install mutt echo “Hi, database backup.” | mutt -s `date +%d/%m/%Y`” – backup ” [email protected] -a xxx.zip Change from address vi ~/.muttrc set from=”Vick <foo@bar>”

Continue Reading
May 16, 2018 / Linux

Check cron log

tail /var/log/cron

Continue Reading
June 13, 2018 / Linux

Mysql database Export and Import

Mysql export mysqldump -u root -pxxxxx –all-databases > mysql.sql mysqldump -u root -pxxxxx –databases db1 db2 db3 > wellcome2015.sql Mysql import mysql -u root -pxxxxx –all-databases < mysql.sql

Continue Reading
May 16, 2018 / Linux

How to install Samba server on CentOS 7

Command sudo yum install samba samba-client samba-common smbpasswd -a username smbpasswd -e username Config file [data] path = /home/database writeable = yes public = yes

Continue Reading
October 8, 2014 / Linux

Remove CD-ROM from apt-get repositories Debian 7

I noticed that Debian 7 uses the media in the CD-ROM when using the “apt-get” utility. The following message comes up when attempting to install or update a program using apt-get: Media change: please insert the disc labeled ‘Debian GNU/Linux 6.0.0 _Squeeze_ – Official i386 DVD Binary-1 20110205-17:27′ in the drive ‘/media/cdrom/’ and press enter …

Continue Reading
August 23, 2014 / Linux

Qemu install windows

sudo apt-get install kvm qemu vnc4server -y mkdir /home/QEMU/ mkdir /home/QEMU/windows/ qemu-img create -f qcow /home/QEMU/windows/winxp.img 12000M vnc4server -geometry 1024×768 -depth 24 vncpasswd vnc4server -kill :1 Vnc clinet Download http://www.realvnc.com/download/ qemu -boot d -cdrom /dev/cdrom -hda /home/QEMU/windows/winxp.img

Continue Reading
August 23, 2014 / Linux

Debian Support NTFS read and write

apt-get install ntfs-3g exfat-fuse exfat-utils fdisk -l mount -t ntfs-3g /dev/hdax /mnt/windows boot vi /etc/fstab /dev/hdax /mnt/windows ntfs-3g defaults 0 0 exfat /dev/sda1/ /media/music exfat-fuse defaults 0 0

Continue Reading

Posts navigation

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Categories

  • Linux
  • LNMP
  • Mac
  • Mobile
  • PHP
  • Products
  • SMS
  • Uncategorized
  • VPS
  • 原创
  • 技术

Recent Posts

  • composer切换源_composer全局更换镜像源的教程
  • 宝塔终端切换root用户为www
  • linux 宝塔 nginx php8.0 或者 php7 安装swoole
  • 宝塔面板修改composer默认PHP版本
  • PHP代码http跳转到https

Archives

  • October 2022
  • August 2022
  • June 2020
  • June 2019
  • October 2018
  • May 2018
  • April 2018
  • March 2018
  • July 2016
  • June 2016
  • April 2016
  • November 2015
  • October 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • August 2014
  • April 2014
  • June 2011
  • June 2010
  • May 2010
  • April 2010
  • December 2004
  • October 2002
  • January 2001
  • March 2000
© 2000-2025 倪之帅 Victor 个人主页