• Servlet and Tomcat running examples


    Servlet and Tomcat running examples This article will write a servlet and deploy it to Tomcat. This article refers to the contents of “in-depth dismantling of Tomcat ﹣ jetty”. I. development steps based on web.xml Download and install Tomcat. Write a Java class myservlet that inherits HTTP servlet. Compile Java class files into class files. […]

  • Best practice of log service data processing: pull data from other logstores for enrichment


    Summary When using the global enrichment function to do the enrichment, we need to transfer a dictionary or table structure to do the enrichmentThis article introduces how to use resource functions fromres_log_logstore_pullDetailed practice of pulling data from other logstores for enrichmentres_log_logstore_pullThis syntax currently supports two modes to pull data from logstore: one is to pull […]

  • Mysql8.0.17 – explore clone plugin


    MySQL 8.0.17 introduces a heavyweight feature: Clone plugin. Allows users to clone the current instance locally or remotely. This is very useful in some scenarios when you want to quickly set up a replication backup or add new members to the group replication. This paper mainly tries to play this function and try to explain […]

  • Detailed explanation of how to add log function to. Net core project


    I. Microsoft’s built-in log component When a new web API project is created using templates in. Net core, the logging function is automatically added. Just inject ilogger into the controller. Namespace is:Microsoft.Extensions.Logging。 It will be found that only error is printed to the console, and trace is not printed. That’s because in appsetting.json, the logging […]

  • How to view the real-time log of application deployment using cloud Toolkit


    Previously, we introduced “deploying applications to servers in IntelliJ idea.”. The latest version of cloud toolkit adds the function of viewing real-time logs when deploying remote server applications. The function preview is as follows: click to enlarge Open the configuration interface of application deployment, as shown in the figure above, and click the Advanced tab, […]

  • Windows 2008 unattended installation domain controller


    From: https://blog.csdn.net/techviewer/article/details/26485017 Unattend.txt file: ; DCPROMO unattend file (automatically generated by dcpromo) ; Usage: ; dcpromo.exe /unattend:C:\Users\Administrator\Desktop\123.txt ; [DCInstall] ; New forest promotion ReplicaOrNewDomain=Domain NewDomain=Forest NewDomainDNSName=contoso.com ForestLevel=4 DomainNetbiosName=CONTOSO DomainLevel=4 InstallDNS=Yes ConfirmGc=Yes CreateDNSDelegation=No DatabasePath=”C:\Windows\NTDS” LogPath=”C:\Windows\NTDS” SYSVOLPath=”C:\Windows\SYSVOL” ; Set SafeModeAdminPassword to the correct value prior to using the unattend file SafeModeAdminPassword= ; Run-time flags (optional) ; RebootOnCompletion=Yes […]

  • [Linux] shell script programming – count the device number in the log file to send the notification email


    1. List of log files For example, / data1 / logs / 2019 / 08 / 15/   2. Count a keyword shell script in the log Zcat *. Gz|grep keyword|grep – op “deviceid = [^] +” |uniq|sort – U > / TMP / 20190815.log Date formats the date and other information, and […]

  • What to do if k8s fails to use job to perform tasks


    Kubernetes uses two resources, job and cronjob, to provide the characteristics of one-time task and timed task respectively. These two objects also use the controller model to realize resource management. In this article, we will introduce what happens if job execution fails. Modify job-fail.yaml to intentionally introduce an error: Never If willrestartPolicySet toNeverWhat will happen? […]

  • Django project: Project Environment Building — II. Django project setting


    1. Configuration template file TEMPLATES = [ { ‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’, ‘DIRS’: [os.path.join(BASE_DIR, ‘templates’)], ‘APP_DIRS’: True, ‘OPTIONS’: { ‘context_processors’: [ ‘django.template.context_processors.debug’, ‘django.template.context_processors.request’, ‘django.contrib.auth.context_processors.auth’, ‘django.contrib.messages.context_processors.messages’, ], #Build the template label into the template https://docs.djangoproject.com/en/2.1/topics/templates/ ‘builtins’: [‘django.templatetags.static’], }, }, ]   2. Configure MySQL database Create database mysql> create database tzproject charset=utf8mb4; Query OK, 1 row affected (0.00 […]

  • High-speed cross-domain log replication, historical data re-indexing and data warehouse delivery using CLI


    Abstract:High-speed cross-domain log replication, re-indexing of historical data, and delivery of historical data to OSS/ODPS? Now these operations CLI can be supported. background Do you often encounter the following annoyances when using log services? What if you open the field index but can’t work on the history log, and it’s difficult to reconstruct the index […]

  • The Reasons and Solutions of MySQL Service Startup Failure under CentOS 7


    After restarting Ali’s entOS 7 server, there was an error restarting MySQL Starting mysqld (via systemctl): Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details. [FAILED] Follow the prompt to view the error message [[email protected] ~]# systemctl status mysqld.service ● mysqld.service – SYSV: […]

  • Elasticsearch Core Technology and Practice-Brief Introduction


    Ruan Yiming, a lecturer, introduced that the Pronto team of eBay manages hundreds of Elastic search clusters within ebay, with more than 4000 data nodes. Services supported in the production environment include order search, commodity recommendation, log management, risk control, IT operation and maintenance, security monitoring, etc. What Elastic search can do First of all, […]