January 18, 2025
·
2 min read
· Page View:

It has been a long time since the linux used init to manage the startup process, such as sudo /etc/init.d/apache2 start or service apache2 start, but the init is serial. To address this issue, the systemd was born. The d is the abbreviation of daemon, which means the systemd is a daemon manager. The systemd substitutes the initd and becomes the default main process PID 1.
Read the full text -> A total of 0.49k words
January 18, 2025
·
3 min read
· Page View:
Normally, we often write a Dockerfile in the current directory.
- The
Dockerfile is a configuration file that describes how to build the image. You can refer to the official documentation for more details. - If you list more than one
CMD, only the last one takes effect. So if you have multiple commands to run, you better write them in a script file. - Docker is not the VMware, there is no
systemd in the container. Its startup program is the container application process. The container exists for the main process. Once the main process exits, the container loses its meaning of existence and thus exits. So when you execute multiple commands and if they are blocking, you better write the previous commands in nohup and the last command in the blocking command. (never use the command such as CMD service nginx start, the CMD only will execute as CMD [ "sh", "-c", "service nginx start"], when the sh is executed, the container will exit, the correct way is run it directly CMD ["nginx", "-g", "daemon off;"])
Read the full text -> A total of 0.77k words
January 17, 2025
·
2 min read
· Page View:

This is a cheatsheet of docker.
Note: the docs will be updated from time to time.
Read the full text -> A total of 0.60k words
January 16, 2025
·
8 min read
· Page View:

Docker is a practical tool for everyday use, and like Git, you can learn it in just 30 minutes.
Read the full text -> A total of 1.62k words
January 14, 2025
·
2 min read
· Page View:

So what is the difference between the Instance method, the Class method and the Static method?
Read the full text -> A total of 0.49k words
January 10, 2025
·
14 min read
· Page View:

从 12 月 10 号正式上线生产版本的 bilive 到现在,已经过去了一个月了。目前 bilive 的 star 数已经突破了 300,实际用户数应该在 20 ~ 30 之间。当然 star 的数据本身没有什么意义,我真正追求的是使用者,但是 star 数据能够反映出项目实际浏览量,与其他工具类项目相比,我对于 bilive 的定位更像是一个产品,如何让这个产品积累足够多的用户和反馈,是我目前主要面临的问题。
Read the full text -> A total of 2.80k words
January 8, 2025
·
6 min read
· Page View:

In today’s digital age, security is paramount. As we increasingly rely on technology for communication, commerce, and data storage, understanding the fundamentals of security becomes essential. This article provides an overview of key security concepts, including encryption, digest algorithms, and digital signatures. By exploring these topics, we aim to equip you with the knowledge to protect your digital assets and ensure the integrity and confidentiality of your information. Whether you’re a tech enthusiast or a professional in the field, this guide will offer valuable insights into the mechanisms that safeguard our digital world.
Read the full text -> A total of 1.31k words
January 7, 2025
·
2 min read
· Page View:

Last week, I have made a python cli tool. To make it more convenient to use, I want to publish it as a pip module, so I have made some research and mistakes, and finally succeeded.
Read the full text -> A total of 0.59k words
January 6, 2025
·
0 min read
· Page View:

As a developer, I have been using many packages in my projects. Sometimes I may even forget the existence of the packages. When I changed my devices or some one else asked me, it’s hard for me to remember everything to recommend. Thus I will try to list the things which I think are very helpful and useful to share with you. Maybe we can even make an “Annual Oscar Awards ceremony” for the things.
Note: This post will be updated regularly.
Read the full text -> A total of 0.20k words
January 4, 2025
·
10 min read
· Page View:

HTTP protocol is the foundation of the Internet, and HTTPS is the secure version of HTTP. HTTP is an application layer protocol based on TCP/IP protocol. It does not involve packet (packet) transmission, mainly specifying the communication format between the client and the server, and the default port is 80.
Read the full text -> A total of 2.14k words