Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Create your own blogger from scratch

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Today I will talk to you about creating your own blogger from scratch. Many people may not know much about it. In order to let you know more, Xiaobian summarized the following contents for you. I hope you can gain something according to this article.

Is www.minmsn.com fed up with frequent switching between blogging platforms, well-crafted language being innocently replaced, hard-maintained posts occasionally mercilessly killed, and overwhelming ad frenzy bombarded? Annoyed! Tired! That's enough! Finally I want to make a move, now give you a formula can start from scratch to create their own blog, only need to spend a little money (average monthly hundred yuan can play a small) can solve all the pain points above, in their own territory to make their own decisions, random wild! Specifically, it mainly includes the following steps: 1. Domain name registration

Choose a representative domain name, such as minminmsn.com

Reference: buy.cloud.tencent.com/domain? from=console

2. Domain name registration

Personal site filing, with the help of the platform is still very convenient, about 20 working days can be completed (according to the continental law all domain names need to be filed, otherwise the consequences are at your own risk)

Reference: console.cloud.tencent.com/beian

III. Public security filing

Personal site non-interactive page is better for filing, need ICP filing after 30 days to start

Reference: cloud.tencent.com/document/product/243/19142

IV. Certificate Application

There is a domain name free version that can be tried for free for one year (secretly happy)

https://buy.cloud.tencent.com/ssl

V. Architecture design 5.1 renderings

5.2 Architecture diagram Nginx(certificate, jump, flow control, reverse proxy)

|

Docker origin site (security, cache plugins)

|

Docker database (mysql)

|

Regular backups (scripts) VI. Deployment configuration 6.1 Nginx deployment wget http://nginx.org/download/nginx-1.14.1.tar.gztar zxvf nginx-1.14.1.tar.gzcd nginx-1.14.1/./ configure --with-http_ssl_module makemake install6.2 Nginx configure user nobody;worker_processes auto;error_log logs/error.log;pid logs/nginx.pid;#Occasionally turn up the dot, personal blog visits are definitely problematic events { worker_connections 10240;}http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log logs/access.log main; sendfile on; tcp_nopush on; keepalive_timeout 65; #Turn on compression to save server traffic gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_comp_level 2; gzip_types text/htm application/x-javascript text/css image/jpeg image/png; gzip_vary off; #Configure current limiting to place slight spoof limit_req_status 418; limit_conn_status 418; limit_req_zone $binary_remote_addr zone=one:10m rate=3r/s; limit_conn_zone $binary_remote_addr zone=addr:10m; server { listen 80; server_name minminmsn.com m.minminmsn.com www.minminmsn.com; return 301 https://wwww.minminmsn.com$request_uri; } #Note the security of the certificate and encryption algorithm applied for server { listen 443 ssl; server_name www.minminmsn.com; limit_req zone=one burst=5 nodelay; limit_conn addr 5; ssl_certificate ssl/minminmsn.crt; ssl_certificate_key ssl/minminmsn.key; ssl_prefer_server_ciphers on; ssl_ciphers "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:HIGH:! aNULL:! eNULL:! EXPORT:! DES:! MD5:! PSK:! RC4"; ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1; ssl_session_cache shared:SSL:10m; ssl_session_timeout 60m; #wordpress does not support ssl by default, nginx reverse proxy configuration after you need to install the plugin ssl-insecure-content-fixer location / { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Port 443; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; client_max_body_size 30M; client_body_buffer_size 256k; proxy_connect_timeout 60s; proxy_read_timeout 600s; proxy_send_timeout 600s; } }}6.3 Docker Deployment Docker can be used as a program that can be opened, suspended and restarted, as long as the data is saved to the outside without loss. It is very convenient and fast to use docker pull mysql:5.7docker pull wordpress:latestdocker run --name mysql -v /yourpath/db:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=your@password --restart=always -d mysql:5.7docker run --name wordpress -v /yourpath/www:/var/www/html --restart=always --link mysql:mysql -p 8080:80 -d wordpress VII, front-end design (concise) 7.1 template

(Choose one that can hold and be fresh and refined)

Chilly is a responsive, versatile WordPress theme. Flexible and suitable for displaying organizations, blogs, businesses, companies or portfolios. Customization is easy and straightforward, and the options provided allow you to set up your site to exactly match your desired online presence. Please visit this link https://wordpress.org/themes/spicepress/.

7.2 Layout theme three cups of water open source background image support open source a small poem Rand's life and death a small picture Boyata classification column nine nine to one calendar three multiples is the blog day eight, plug-in selection (choose simple and easy to use) AddToAny Share Buttons can be complex links to share to the commonly used social platforms at home and abroad Limit Login Attempts Reloaded to prevent brute force cracking blog account password Mobile Menu in different terminals can be very good display of your blog WP Editor.md Perhaps this is a WordPress best, WP Super Cache is the most perfect Markdown editor. It optimizes blog performance, caches static resources, and accelerates WP statistics. It can analyze regions and click rates. SSL-insecure-content-fixer helps you clean up and fix HTTPS unsafe content on WordPress sites. Disable comments for personal non-interactive sites. IX. Original content. Buddhism is profound and profound, there is a beginning philosophy, freedom, borderless development mountain, but I used to learn to burn your small universe technology is the first productivity data to satisfy curiosity, talk is also evil, ice and fire reading lifelong interdisciplinary questions operation strategy in the strategy After reading the above content, do you have any further understanding of creating your own blogger from scratch? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report