Category: System

Linux (238)
Windows (383)

Solving PHP-CGI Process Crashes on Windows

When using nginx, PHP requests need to be forwarded to a CGI program. About FastCGI: its full name is FastCGI Process Manager, a process manager that manages CGI. There are many process managers on the market, and PHP-FPM is one of them. PHP-FPM acts as a process manager, listening on a port…

How to Set the SU Password on Deepin

Open a terminal with sufficient privileges. This example uses the regular user `sjby365` to change the root password.

sudo passwd # After pressing Enter, you will be prompted to enter the current user’s password, as shown below.

Enter new UNIX password: # Set the root password
Retype new …

How to Set Linux Time to 24-Hour Format

1. Modify the current time:
vi /etc/sysconfig/clock
Add the following content:

ZONE="Asia/Shanghai" UTC=false ARC=false

cp /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai.bak #Backup
vi /usr/share …

Passwordless Login from Windows to Linux

Experiment Environment
Local: Windows 7
Remote: CentOS 6.x, 7.x Linux

1. Windows-side operations:
Download the OpenSSH tool, install it, and generate keys:

http://mirror.cnop.net/ssh/OpenSSH-for-Windows.zip

Open the CMD dialog and enter the following:
ssh-keygen -t rsa -C …

How to Fix LNMP and Crontab Conflicts

How to Fix Crontab Not Running for Non-Root Users in LNMP/LAMP

I believe anyone familiar with PHP programs has used LNMP or LAMP. A couple of days ago, after installing the LAMP stack from https://lnmp.org/, I found that crontab scheduled tasks were not executing for regular users. The issue went away after uninstalling it.

Here’s how to fix it:
vi /etc/crontab # Edit the file
SHELL=/bin/ …

SVN: Item Is Not Readable Fix

SVN Update Log Error Fix:

svn: E220001: Item is not readable

Reason: Insufficient read permissions.

Solution:
Open the project configuration file (using my project as an example):

vi /backup/svn/nager/conf/svnserve.conf

[general] anon-access = none …

Start and Stop Nginx Commands on Windows

Starting:

Go to the nginx directory and double-click nginx.exe in the Nginx folder, or run in cmd:
start nginx

Stopping
nginx -s stop
or
nginx -s quit
stop means stop nginx immediately without saving related information

quit means exit nginx normally, and …

Linux System Time Sync Tool rdate

Command:
#yum -y install rdate #If the situation shown above occurs, you can install the rdate tool with this command
#rdate -s time.nist.gov #Manually sync the time
Set up daily automatic sync:
#crontab -e
30 0 * * * rdate -t 60 -s time. …