home page
Leaving a message.
Friendly chain
Drum kit
more
wallpaper
live broadcast
Time machine
about
Search
one
Gudou TV live broadcast agent source code, Gudou agent principle analysis
44727 Reading
two
Huawei Hongmeng system cannot install xapk APP (youtube advanced)
26638 Reading
three
[Reprint] Qinglong panel+Ninja zero installation tutorial
19037 Reading
four
Docker's typecho image - not recommended
12999 Reading
five
Typecho plug-in - download theme online to the server - addTheme publish
8774 Reading
technology
php
linux
mysql
redis
typecho
nginx
go
python
dnmp
tool
diary
Financial diary
Life diary
life
Kindle resources
Notice
virtual machine
Sign in
Search
Tag Search
msyql
Principal and subordinate
Huawei
Hongmeng
xapk
Flashback
APP flash back
kindle
mobi
docker
pip
alpine
Xiaoxiami of Menglang
Accumulated writing
one hundred and thirty-two
Articles
Accumulated receipt
five hundred and sixty
Comments
home page
column
technology
php
linux
mysql
redis
typecho
nginx
go
python
dnmp
tool
diary
Financial diary
Life diary
life
Kindle resources
Notice
virtual machine
page
Leaving a message.
Friendly chain
Drum kit
wallpaper
live broadcast
Time machine
about
Search to
sixty-nine
Article and
Results for
2023-08-20
The server installs docker. Collect command stickers - for your own use only
The first way to install scripts: # Get docker scripts
curl -fsSL get.docker.com -o get-docker.sh
#Set as AliCloud source
Sudo sh get locker. sh -- mirror Aliyun The second method (used by centos): # Use AliCloud image source
sudo yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
#Replace with AliCloud image source
sudo sed -i 's/download.docker.com/mirrors.aliyun.com\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
#Official source
# $ sudo yum-config-manager \
# --add-repo \
#
https://download.docker.com/linux/centos/docker-ce.repo
If you want to write a script, you can refer to this format (I stole it from a github): # View the version
docker -v
##Judge whether the output result of the command in the previous line is not equal to 0. If it is not equal to 0, there is no docker. 0 in the shell indicates successful execution, while the command in the previous line is to find the docker version. If it is not found, it is not equal to 0
if [ $? -
ne 0 ]; then
##Pull docker.sh in script mode
curl -fsSL
https://get.docker.com
| bash -s docker --mirror Aliyun
if [ $? -
ne 0 ]; then
echo "Install docker failed"
exit 1
fi
fi
##Same reason
docker-compose -v
if [ $? -
ne 0 ]; then
apt install -y docker-compose
if [ $? -
ne 0 ]; then
echo "Install docker compose failed"
exit 1
fi
fi
August 20, 2023
28 Reading
2 Comments
0 likes
2023-08-20
Server memory is less than 1G?
See how I can expand the use of swap
Foreword I bought a small server for tile removal workers, which is cheap and small in quantity, so the server configuration is also very sparse.
512 memory, 11G capacity.
Every time you compile something, you will be prompted that there is not enough memory.
How to increase memory The answer is: increase swap space # Step 1: generate a file of 1024 * 1M=1024m size
dd if=/dev/zero of=/root/swapfile bs=1M count=1024
#Step 2: Convert the file to a swap file
mkswap /root/swapfile
#Step 3 Use this file
swapon /root/swapfile
#Step 4 Start up automatically
echo "/root/swapfile swap swap defaults 0 0" >> /etc/fstab
#Finally, see the effect
Free hs: This article is mainly for my future use, so it mainly focuses on commands. You should not be like me
August 20, 2023
30 Reading
0 Comments
0 likes
2023-08-19
A series of problems encountered by Typecho after starting Cloudflare
1. Unable to log in in the background, prompting 403 that your website has not enabled https2. The background account password is normal, but clicking login does not reflect the communication problem between your website and Cloudflare. Netizens suggest that # # in config.inc.php go to the beginning of the configuration file config.inc.php plus the configuration of mandatory HTTPS
/*Https background*/
Define ('__TYPECHO_SECURE__ ', true); then open
https://dash.cloudflare.com/8be3b8396b25fb787b378de583cd7475/2pp.link/ssl-tls
For this connection, change the configuration to full (complete). The purpose of this step is: these people are more detailed than me. 3
After all the above configurations, the cache was also refreshed, but I still couldn't log in to the Chrome browser. I was stuck here. After trying f5, ctrl+f5 for many years, it didn't work, and disable cache was invalid. Later, I saw an old man said that it was a cache problem, but my f5 was broken and I couldn't log in. At this moment, I had a brainwave. I tried to log in without trace, and the result was that I could log in without trace,
Emmm All right, abominable chrome cache.
So delete the history (keep the cookie). It's useless. Delete the cookie, and then Chrome can log in....
5. After all the above has been done, please upgrade your code version if you still can't log in to the background. This may be a code incompatibility problem. The joe theme I use is always reporting errors. Later, after pulling the author's latest code, it will be normal
August 19, 2023
40 Reading
0 Comments
0 likes
2023-03-25
Baidu Cloud Disk 1-day VIP member sharing
Baidu Online Disk Member
https://pan.baidu.com/component/view/2321https://pan.baidu.com/component/view/2440https://pan.baidu.com/component/view/2002?from=dd
It can be collected once a month and one day at a time. Usage: copy the connection and open it in the browser.
As required, you can receive the member's information about the validity period: this activity will expire on June 31, 2023 Others: welcome to leave a message to urge change.
I will update the connection of this activity from time to time.
Warm tip: comment: "Thank you, landlord" will have unexpected surprises
March 25, 2023
1753 Reading
2 Comments
0 likes
2023-02-15
Too many fastadmin 302 redirects
The code is very simple. I have compared it for a long time. I don't need to care about the server{
listen 80;
server_name xxxxx;
return 301 https://$host$request_uri;
}
server{
listen 443 ssl http2;
server_name xxx.com;
root /app/yy/public;
index index.html index.htm index.php;
#Here, the code related to ssl has been removed. I want to search for ssl by myself. This article does not show you the ssl solution
#Pseudo static
location / {
if (!-
e $request_filename) {
rewrite ^(.*)$ /index.php?
s=/$1 last;
break;
}
}
location ~ .*\.php(\/.*)*$ {
###Just confirm whether there is this line of code
fastcgi_split_path_info ^(.+?\.
php)(/.+)$;
}
}
February 15, 2023
964 Reading
0 Comments
0 likes
one
two
...
fourteen