• news
  • pics
  • linux
  • windows
  • proxmox
  • game
  • news
  • pics
  • linux
  • windows
  • proxmox
  • game

how to get real ip of user when you enable Cloudflare CDN for Nginx/Apache

Nginx part: check if your nginx has http_realip_module.use command nginux -V # nginx -V nginx version: nginx/1.14.2 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) built with OpenSSL 1.1.1a 20 Nov 2018 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --user=www...

centos firewall configuration

1 check firewall service statussystemctl status firewalld 2 check firewall status firewall-cmd --state 3 open,restart,close firewalld service # start service firewalld start # restart service firewalld restart # close service firewalld stop 4 check firewall rulesfirewall-cmd...

Recursive change of permissions for folders and subfolders under Linux

We use chmod command to change permissions of folders and files. [email protected]:~# chmod --help Usage: chmod … MODE… FILE… or: chmod … OCTAL-MODE FILE… or: chmod … --reference=RFILE FILE… Change the mode of each FILE to MODE. With --reference, change the mode of each FILE to...

how to configure local Yum source and external network source in Linux

Local source configuration method Go into /etc/yum.reps.d/ directory and create a file ending with .repo.The content like follow. name=cdrom #cdrom is notes.it can write casually. baseurl=file:///mnt/ #local cdrom's path. path of the yum source. enabled=1 gpgcheck=0 ...

show the color when run ls under linux

Sometimes when we run ls to list files.There's only black background with white words.We can't see file/dir or executable easyly. There's a file named .bashrc under user folder.Such like /root/.bashrcWe can modify this file and add a command line.alias ls='ls --color' After reboot...

how to run a task automatic when system boot

Sometimes we need run some commands automatic when system boot up. We can put the command or script into /etc/rc.locallike:vi /etc/rc.localadd command line into filemount --bind /var/www/html/ /home/ftpuserThis will mount web base dir to ftp base dir automatic when system startup. And don't...

how to use crontab to excute tasks on time

like windows has scheduled tasks.linux has crontab.it's a tool for excute tasks on time. how to install crontab?we can use yum.yum install vixie-cron crontabsthen run itservice crond startwe can add it into autostart when we open the computer.chkconfig --level 345 crond on how to use...

build website platform. LAMP

what is lamp? lamp is linux+apache+mysql+php.They are all open source software and free. change your centos 7 yum source to a faster source and upgrade the os.for example: 1 backup local yum source. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak2 get a faster...

vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()

after I lock ftp user to stop them access system dir. some user get an error when they login. 500 OOPS: vsftpd: refusing to run with writable root inside chroot () because if the user is limited to his home directory,the user's home directory can no longer have write privileges.If the...

how to lock ftp user to their root dir on vsftp

when I build this site.I need ftp to upload web files to the server space.And the upgrade of wordpress also need ftp. I found it dangerous if the ftp user can access "/" directory. I want to lock them to each ftp root dir. So that I can protect my linux system dir. There's a way. vi...
Page 6 of 7...4567
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Categories
  • game
  • linux
  • news
  • pics
  • proxmox
  • windows
Recent Posts
  • proxmox7.3直通显卡
  • Proxmox VE 直通显卡方案及解决N卡Code43
  • Linux系统出现:You have new mail in /var/spool/mail/root 的原因及解决办法
  • debian系统解决中文乱码
  • pve添加git和pvetools
Recent Comments
  • EdgarTot on proxmox7.3直通显卡
  • Ashvem on proxmox7.3直通显卡
  • Tedvem on proxmox7.3直通显卡
  • Jackvem on proxmox7.3直通显卡
  • Miavem on proxmox7.3直通显卡
Archives
  • March 2023 (1)
  • December 2022 (4)
  • November 2022 (6)
  • April 2022 (1)
  • February 2022 (5)
  • January 2022 (2)
  • December 2021 (3)
  • November 2021 (1)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (8)
  • June 2021 (14)
  • May 2021 (2)
  • April 2021 (2)
  • March 2021 (10)
  • January 2021 (4)
  • December 2020 (4)
  • November 2020 (13)
  • April 2020 (276)
  • March 2020 (1)
  • June 2019 (5)
  • May 2019 (10)
  • December 2015 (1)