os of common Python modules

os.getcwd() Return the absolute path to the current working directory Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import os >>> print(os.getcwd()) C:\Users\28914\AppData\Local\Programs\Python\Python37 os.chdir( ...

Posted by tony_l on Wed, 20 Nov 2019 21:12:02 -0800

Nginx web page optimization

Nginx web page optimization (2) Change Number of Nginx Running Processes In high concurrency scenarios, more Nginx processes need to be started to ensure fast response to handle user requests and avoid blocking You can use the ps aux command to see the number of Nginx running processes Change the configuration method for the number of proces ...

Posted by wilburforce on Wed, 20 Nov 2019 17:11:46 -0800

Linux network service network settings related commands

Linux network settings View network settings Test network connection Use network configuration command Modify network profile This article mainly introduces some basic and common Linux network setting commands and some script file configuration steps in Linux. I. view and test network configuration 1.ifconfig -- View network interface a ...

Posted by Bobby_Jo on Tue, 19 Nov 2019 03:24:32 -0800

Nginx Service Optimizes Web Page Compression and Anti-theft Chain

Configure Nginx for Web Page Compression Nginx's ngx_http_gzip_module compression module provides the ability to compress file content, allowing the Nginx server to compress output content before sending it to the client, saving bandwidth on the site and improving the user's access experience. It is installed by default.Compression performance ...

Posted by faraco on Sun, 17 Nov 2019 13:51:12 -0800

Front End Performance and Exception Monitoring

More articles Preface These days, there has been a lot of excitement to learn about front-end monitoring, but after looking at a lot of data, I found that there are no detailed articles about front-end monitoring, they are all about general, on the contrary, there are many existing front-end monitoring tools. In order to learn more about the te ...

Posted by talltorp on Fri, 15 Nov 2019 21:07:58 -0800

Nginx Optimization Practice (process management, anti-theft chain)

Nginx process management instance: [root@nginx nginx-1.12.2]# cd /usr/local/nginx/ [root@nginx nginx]# ls client_body_temp fastcgi_temp logs sbin uwsgi_temp conf html proxy_temp scgi_temp [root@nginx nginx]# cd conf/ [root@nginx conf]# vim nginx.conf //Set timeout keepalive_timeout 65 180; client_header_t ...

Posted by newcastle_unite on Fri, 15 Nov 2019 11:09:18 -0800

Theory: linux system security and Application

Mainly from account security control, system guidance and login control, weak password detection, port scanning local control to learn I. Basic Measures for account security 1.1 system account cleaning Set the Shell of the non login user to / sbin/nologin Lock account 'usermod -L' not used for a long time Delete useless account 'userdel -r' L ...

Posted by Cetanu on Fri, 15 Nov 2019 04:15:08 -0800

Nginx optimization - connection timeout, process management, compression, anti-theft chain

Nginx implementation connection timeout In order to avoid the waste of resources caused by the same customer occupying the connection for a long time in the enterprise website, the corresponding connection timeout parameters can be set to control the connection access time. Viewing connection parameters using the fiddler tool Timeout param ...

Posted by alfoxy on Thu, 14 Nov 2019 09:20:55 -0800

Ali Cloud Deployment 6. Configure https

Get ready Domain name on file ssl certificate (free) Request Certificate Login to Ali Cloud Console Production - > Products and Services - > SSL Certificates Click Purchase Certificate, Certificate Type Select Free DV SSL, Complete Purchase After purchasing, Symantec Free SSL appears, button click under operation item. Perfect data and ...

Posted by jber on Sun, 10 Nov 2019 18:21:24 -0800

DNS in Binder process communication

DNS in Binder process communication ----- servicemanager Just as "DNS" in the Internet needs to be ready before browsing all kinds of web pages, so service manager needs to be in a normal state before someone uses Binder. Next, we briefly introduce service manager. 1. When to start Since someone needs to be ready befo ...

Posted by teongkia on Wed, 06 Nov 2019 14:01:59 -0800