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
44731 Reading
two
Huawei Hongmeng system cannot install xapk APP (youtube advanced)
26638 Reading
three
[Reprint] Qinglong panel+Ninja zero installation tutorial
19038 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
eight
Article and
Results for
2022-08-11
Teach you to troubleshoot the reason why the external network cannot access the internal network server through the public network IP
The relocation of the company has resulted in the loss of the function of accessing the internal network from the external network. Today, we are here to check the problem.
The problem analysis is that the router configuration is good (I checked to make sure it is normal, just in case) because the hardware is usable before, the hardware has not been replaced, and the broadband account network has not changed. Because it is a relocation, and then the hardware has an optical cat+switch+router+server, it is speculated that the IP allocated is different because of different levels.
To confirm whether your network IP is really the process of public network IP troubleshooting, because you don't know anything about it, you first checked the configuration of the router, took the opportunity to sneak in and see how the boss configured it.
After confirmation, it is found that there should be no shortage of configurations.
Then I confirmed the routing level of the server. After logging in to the server through the intranet ssh, I found that it was possible to log in. Then I confirmed that it should not be a level problem (because I didn't go to the company and operated remotely). The last thing that was most unlikely was the problem of public IP, because according to my original idea, the company had public IP before, but only moved the environment,
The account is old, so there should be no problem. When I opened ip138.com, I found that my IP address was the old public IP address (which confirmed my belief that the public IP address was still old, indicating that it should be a hardware problem),
Then query that the IP address on the router is an intranet IP address (this is different from the one queried in 138, which has already explained the problem. If this is different from the one queried in 138, it means that the IP address is not a public IP address, but I didn't realize it at the time).
I started to look at the hardware level again. It seems that there should be no problem.
So I plan to confirm from the beginning and contact the broadband provider first, but I can't get in touch.
So I contacted the router manufacturer and got in touch. The router manufacturer said: In most cases, if there is a public IP, the router IP must be a public IP. It happened that Telecom contacted me and asked Telecom. Telecom said that the public IP was lost because of your relocation, and then asked them to give it a new IP and restart the router,
On the router page, it is the public IP again.
So far, the problem has been solved.
The above is my idea of solving the problem, for reference only.
Tips You don't have to worry about whether the router has received your external network request, because as long as the virtual host is set up, as long as the router receives the request, it will automatically forward it to your internal network server.
The wan ip displayed on the router's home page (that is, the ip displayed on the router) must be your current ip to the external network. If it displays an internal ip, it must be the internal network. Don't hesitate to call customer service directly.
About the second point.
Sometimes, there are some configurations on your optical cat, such as multi-level and multiple routers, so the optical cat will configure your router with an intranet IP address. At this time, you should confirm whether the optical cat has a configuration.
I didn't understand what this was about at first, but later I learned that because the public IP keeps changing, the router will report your real-time public IP address to the dynamic domain name provider, and then the dynamic domain name will change your domain name resolution address to the latest IP reference
https://service.tp-link.com.cn/detail_article_2576.html
Virtual Host Settings
https://m.300.cn/itzspd/385162.html
Dynamic domain name binding
August 11, 2022
1268 Reading
0 Comments
0 likes
2022-05-31
About php xdebug debugging thinkphp on vscode Sharing experience - novice installation experience
This article is a companion to the previous one.
If you are a Xiaobai who has never used it at all, it is recommended that you first read the first article: novice installation of xdebug.
The purpose of this article is to install xedebug and debug thinkphp. This article mainly shares the problems encountered during installation to enlighten readers.
Problem encountered in the body: After installing xdebug, vscode cannot listen to the browser. Currently, xdebug has two versions and three versions.
If you don't know your own version, it is recommended to configure version 3 first, and then change it to version 2 if you are sure that it is not enough # Add it in php. ini (this is version 3)
xdebug.mode = debug
Xdebug. start_with_request=yes # Added in php.ini (this is version 2)
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
Xdebug. remote_port=9000. You can try both configurations. Maybe you can.
If your English is good, you can read vscode for xdebug directly:
May 31, 2022
1631 Reading
0 Comments
0 likes
2022-05-04
MySQL automatic backup script
You can change the script you got on the Internet. The code you use is #/
bin/bash
#Storage directory/root/mysqlbackup
BackupDir=
#Database database name blog
DataBaseName=
#User name root
User=
#Password 123456
Passwd=
#host localhost
Ip=
#Date name% Y% m% d_% H% M
DateTag=`date +%Y%m%d`
#SQL script name
sqltag=$DataBaseName'_'$DateTag'.'sql
#Compressed file name
tartag=$sqltag'.'tar'.'gz
#Backup
mysqldump -h $Ip -u$User -p$Passwd --databases $DataBaseName > $BackupDir/$sqltag
#Compress and delete the original file
cd $BackupDir
tar -czf $tartag $sqltag
rm -rf $sqltag
#Regularly clear files to access long-term accumulated disk space (delete tar.gz files 5 days ago)
find $BackupDir -mtime +5 -name '*.tar.gz' -exec rm -rf {} \;
Echo "Backup Successful Date:" $(date+"% Y -% m -% d% H:% M:% S") If you need to use it, please modify the following values #!/bin/bash
#Storage directory/root/mysqlbackup
BackupDir=
#Database database name blog
DataBaseName=
#User name root
User=
#Password 123456
Passwd=
#host localhost
Ip=# Pay attention to script execution permission and modify script path crontab
00 02 * * * sh/root/scripts/mysql_backup. sh>/root/scripts/mysql_backup. log 2>&1 Reference
https://xie.infoq.cn/article/5555c43bf82eb31ec19fb8fce
May 4, 2022
512 Reading
0 Comments
0 likes
This week's technical article sharing - use of unit test and interface pressure test tools
May 3, 2022
1209 Reading
0 Comments
0 likes
2022-05-03
article
https://segmentfault.com/a/1190000040048486
Interface performance pressure test
https://www.cnblogs.com/stulzq/p/8971531.html
Use of jmeter
https://www.jianshu.com/p/c6bb4441fbe6
Use of jmeter
https://www.jianshu.com/p/b22c57ceb52b
jm
eterhttps://www.cnblogs.com/fengjian2016/p/12321895.html
Qps calculation
https://funnylog.gitee.io/mysql45/20%E8%AE%B2%E5%B9%BB%E8%AF%BB%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%8C%E5%B9%BB%E8%AF%BB%E6%9C%89%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98.html
About mysql45
https://www.cnblogs.com/nedulee/p/12542104.html#h
-1 MySQL optimized paging query
https://learnku.com/laravel/t/65632
2022 php interview question
https://juejin.cn/post/6844903481191432206
Time complexity log
nhttps://juejin.cn/post/6893471439694135309
From zero to ten million users, how do I optimize the MySQL database step by step?
https://learnku.com/articles/17564
Php debug test
https://learnku.com/articles/30693#reply226491
Nginx createfile problem
https://learnku.com/articles/10531/laravel-testing-technology
Getting Started with Unit Testing
https://learnku.com/laravel/t/65632
Php interview
https://learnku.com/articles/44833
Unit test
http://www.myjoyoo.com/archives/40
Unit test data rollback keywords and fragments 78 Practical Java performance tuning › 07 Module 6 Database performance tuning (8 lectures)
Distributed 100 million level high parallel power generator project 729_Application performance analysis practical595_23 talk about getting the background architecture practical592_Architecture design interview elaborate 356_Java performance optimization practical21 talk about 547_ Create a 10 million level traffic seconds killing system579_Software architecture scenario practical22 talk about 80% of the daily access concentrated in 20% of the time, which is called peak time.
Generally speaking, according to our experience,
The commonly used machine configurations for Java application system deployment are generally more 2-core 4G and 4-core 8G. The minimum machine configurations for database deployment are above 8-core 16G, and normally 16 core 32G. From our production experience of a large number of high concurrency online systems, Java application systems are generally deployed on 4-core 8G machines,
It is almost appropriate to resist about 500 concurrent accesses per second, although this is not necessarily the case.
Because you have to think about it, if you can process every request in 1s, then a machine can only process 100 requests per second, but if you can process every request in 100ms, then a machine can process hundreds of requests per second.
So how many requests a machine can withstand per second is often related to how long it takes you to process each request. But generally speaking, according to our extensive experience and observation, a 4-core 8G machine deploying a common Java application system can withstand hundreds of concurrent accesses per second. From one or two hundred requests per second to seven or eight hundred requests per second, it is possible,
The key is to see how long it takes you to process each request.
According to our previous experience, the MySQL database deployed on an 8-core 16G machine can withstand 1000 or 2000 concurrent requests per second, which is no problem
2022-02-14
[Notes] The native js returns to the top or bottom of the page manually
Foreword When browsing the Enshan Forum, the author always has some posts to pull to the bottom to reply, and the most extreme is that the posts are very long, and I don't want to pull them by hand, so I wrote this code (the code obtained from the search) # This code is applicable to the chrome browser, and can be used after copying, pasting and saving to the bookmark
javascript:(function() {
#Determine whether the scroll bar is at the top. If it is, go to the bottom 10000
if (document.documentElement.scrollTop == 0) {
window.scrollTo('10000','10000');
#Determine whether the scroll bar is at the bottom. If it is, go to the top 0
} else if (document.documentElement.clientHeight +document.documentElement.scrollTop +50> document.documentElement.scrollHeight) {
window.scrollTo('0','0');
}else {
#In other cases, go to the bottom to reply
window.scrollTo('10000','10000');
}
})();
Precautions are only applicable to the hidden content of the page conclusion that is not loaded like the Ajax asynchronous request. Please go to the inside page to check the details
February 14, 2022
2690 Reading
1 Comments
0 likes
one
two