CN101155043A - Method for implementing terminal service program by telnet login mode - Google Patents
Method for implementing terminal service program by telnet login mode Download PDFInfo
- Publication number
- CN101155043A CN101155043A CNA2006101167318A CN200610116731A CN101155043A CN 101155043 A CN101155043 A CN 101155043A CN A2006101167318 A CNA2006101167318 A CN A2006101167318A CN 200610116731 A CN200610116731 A CN 200610116731A CN 101155043 A CN101155043 A CN 101155043A
- Authority
- CN
- China
- Prior art keywords
- telnet
- fixed terminal
- mode
- login
- service program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention discloses an implement method of terminal service program by telnet logging mode. The said method uses inetd guard process monitoring network available in linux/unix system to receive the request of lacal fixed terminal service terminal. And then the inetd uses service program of fixed terminal based on allocation and transfers the corresponding parameter to the fixed terminal service program. Finally, the fixed terminal service program judges whether the telnet logging mode is used or not based on the parameter, if the telnet logging mode is used, the telnet mode uses login system of calling system to log on, not by /etc/inittab. The said method can increase the operating efficiency of program and the system resource occupied little space, therefore the problem is solved that the general fixed terminal logs in by /etc/inittab to occupy too large system resource and time may be delayed under Linux.
Description
Technical field:
The present invention relates to data communication field, particularly a kind of implementation method of passing through the terminal server of telnet login mode.
Background technology:
Fixed terminal of today service widespread usage is in financial industry such as bank, postal services, makes the terminal on foreground and the specific pseudo-terminal on the central server of backstage number to be bound.But there is following defective in these terminals in actual motion: most terminal server all by on the server/etc/inittab sends and lands picture and land.But it is many to land the system resource that takies by inittab, when a server lands up hundreds of road even thousands of roads Terminal Service, can bring very big burden to system.Therefore, some bank with regard to clear and definite proposition can not use/ requirement that etc/inittab lands.And if adopt the operating system of Linux as central server, by/ mode that etc/inittab lands can be when frequently landing for some reason, Linux can carry out the delay of certain hour (about five minutes), causes terminal can not land for a long time.
Summary of the invention:
The implementation method that the purpose of this invention is to provide a kind of terminal server by the telnet login mode lands by/etc/inittab to solve existing most fixed terminals that to take resource excessive, also might cause the problem of time-delay under Linux.
In order to realize the foregoing invention purpose, the present invention adopts following technical scheme:
A kind of implementation method of passing through the terminal server of telnet login mode is characterized in that this method comprises the steps:
(1) adopts inetd finger daemon general in the linux/unix system to monitor network, receive request to local fixed terminal service port number;
(2) inetd calls the fixed terminal service routine according to configuration and transmits relevant parameter and give the fixed terminal program;
(3) the fixed terminal program judges whether it is the telnet login mode according to parameter, if the telnet mode then login by the login system call of calling system, thereby not by/etc/inittab login.
The beneficial effect of foregoing invention is; Accelerated the operational efficiency of program, occupying system resources is few, in will never occurring landing by/ delay that etc/inittab brings.If adopt existing mode/etc/inittab to land, under LINUX, the INIT process is found to repeat to land above 10 times in 2 minutes this road to be landed delay five minutes.
Because in the past when employings/etc/inittab landed, even do not have client-requested to be connected to certain pty this moment, this road of the respawn that system also can not stop always pty when the pty that disposes reaches hundreds and thousands of, also increases the influence of system.Adopt telnet landing approach of the present invention then can avoid these problems fully, just open the pty of correspondence in the time of only on client-requested is arranged and land.
Description of drawings:
Fig. 1 is for adopting the flow chart by the terminal server of telnet login mode.
Fig. 2 is for adopting concrete configuration and the operation chart of telnet login mode under the actual software environment.
Embodiment:
Specify the present invention below in conjunction with accompanying drawing.
A kind of implementation method of passing through the terminal server of telnet login mode, this method at most of terminals adopt/etc/inittab lands the system problem that (dumb terminal) may occur, can be on central server, the operation auto configurator, according to prompting, be configured to the telnet mode and land.Also can be manually /etc/inetd.conf (in some system be /etc/xinetd/routeras) be configured to routeras-c in the file, promptly adopt the telnet mode to land.This mode is considerably less to the system resource that takies central server, and does not have extra delay.
Referring to Fig. 1, adopt terminal server by the telnet landing approach, comprise the steps:
(1) adopts inetd finger daemon general in the linux/unix system to monitor network, receive request to local fixed terminal service port number;
(2) inetd calls the fixed terminal service routine according to configuration and transmits relevant parameter and give the fixed terminal program;
(3) the fixed terminal program judges whether it is the telnet login mode according to parameter, if the telnet mode then login by the login system call of calling system, thereby not by/etc/inittab login.
Referring to Fig. 2, concrete configuration and operation are as shown in the figure.Dispose in the auto configurator of pseudo-telnet mode, as long as prompting occurring: input " c " gets final product in the time of " please select terminal connection method (t: dumb terminal mode, c:telnet mode): ".
In addition, it is worthy of note the telnet landing approach advantage need with compare by/etc/inittab landing approach.The system that certain above-mentioned contrast is adopted is Linux:Suse Enterprise Server
8.0, to use similarly in other UNIX/LINUX systems, effect is the same substantially.
1. referring to Fig. 2.Configuration ttya1 lands for the telnet mode, and ttya2 is that the dumb terminal mode (adopt/etc/inittab) is landed.Configuration corresponding landing order on router simultaneously.
A) log on ttya2 compulsory withdrawal then, carry out this operation so repeatedly.Can five minutes ability of automatically delaying land again if can find in 2 minutes, to land above 10 subsystems.In these five minutes, can not carry out any operation to ttya2.
B) log on ttya1 compulsory withdrawal then, carry out this operation so repeatedly.Can not go out five minutes phenomenon of the above-mentioned delay of phenomenon this moment.
2. referring to Fig. 2.50 pseudo-terminals of configuration adopt the telnet mode to land in batch configuration, and other 50 pseudo-terminals of batch configuration adopt the dumb terminal mode to land.Attention: only need configuration, do not land.
A) under the textual interface of Linux, wait a moment a little and just can see " Id " tal " respawning too fast:disabled for 5minutes " printed words that system is constantly got, the respawn that illustrative system does not stop over against these pseudo-terminals, and caused delay to these pseudo-terminals.And these printed words have only and adopt the pty of dumb terminal mode (promptly be configured to by/ mode that etc/inittab lands) to print, and adopt the telnet landing approach these printed words all do not appear, do not have these problems.
More than be one of several execution modes of the inventive method,, do not spend performing creative labour, on the basis of the foregoing description, can do multiple variation, can realize purpose of the present invention equally for those skilled in the art.But this variation obviously should be in the protection range of claims of the present invention.
Claims (1)
1. the implementation method by the terminal server of telnet login mode is characterized in that this method comprises the steps:
(1) adopts inetd finger daemon general in the linux/unix system to monitor network, receive request to local fixed terminal service port number;
(2) inetd calls the fixed terminal service routine according to configuration and transmits relevant parameter and give the fixed terminal program;
(3) the fixed terminal program judges whether it is the telnet login mode according to parameter, if the telnet mode then login by the login system call of calling system, thereby not by/etc/inittab login.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006101167318A CN101155043A (en) | 2006-09-29 | 2006-09-29 | Method for implementing terminal service program by telnet login mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006101167318A CN101155043A (en) | 2006-09-29 | 2006-09-29 | Method for implementing terminal service program by telnet login mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101155043A true CN101155043A (en) | 2008-04-02 |
Family
ID=39256502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006101167318A Pending CN101155043A (en) | 2006-09-29 | 2006-09-29 | Method for implementing terminal service program by telnet login mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101155043A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101673218A (en) * | 2009-10-15 | 2010-03-17 | 中兴通讯股份有限公司 | Method and system for acquiring Linux kernel information |
US8503993B2 (en) | 2009-06-09 | 2013-08-06 | Alibaba Group Holding Limited | Method and system for payment through mobile devices |
CN112883345A (en) * | 2021-02-04 | 2021-06-01 | 浙江大华技术股份有限公司 | Remote login control method and device |
-
2006
- 2006-09-29 CN CNA2006101167318A patent/CN101155043A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8503993B2 (en) | 2009-06-09 | 2013-08-06 | Alibaba Group Holding Limited | Method and system for payment through mobile devices |
US9928499B2 (en) | 2009-06-09 | 2018-03-27 | Alibaba Group Holding Limited | Method and system for payment through mobile devices |
CN101673218A (en) * | 2009-10-15 | 2010-03-17 | 中兴通讯股份有限公司 | Method and system for acquiring Linux kernel information |
CN101673218B (en) * | 2009-10-15 | 2014-09-10 | 中兴通讯股份有限公司 | Method and system for acquiring Linux kernel information |
CN112883345A (en) * | 2021-02-04 | 2021-06-01 | 浙江大华技术股份有限公司 | Remote login control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2492810A1 (en) | Method and device for managing operating systems in embedded system | |
CN102455936A (en) | Rapid deployment method of cluster | |
CN110138753B (en) | Distributed message service system, method, apparatus, and computer-readable storage medium | |
WO2016169166A1 (en) | Virtual machine scheduling method and device | |
CN112187903B (en) | Message pushing method and device and message service system | |
CN101145989A (en) | A simulated single board and its simulation method | |
CN109104491A (en) | A kind of micro services call method, device, server and storage medium | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
CN111193616A (en) | Automatic operation and maintenance method, device and system, storage medium and automatic operation and maintenance server | |
CN101155043A (en) | Method for implementing terminal service program by telnet login mode | |
CN113162802A (en) | Communication method, equipment and storage medium based on InfiniBand | |
CN106547566A (en) | Communications service process pool management method and system | |
CN114640709A (en) | Edge node processing method, device and medium | |
CN113553139A (en) | Hybrid multi-cloud management method, system, device and medium in container cloud environment | |
WO2023159956A1 (en) | Bare metal server inspection and deployment method and apparatus, and device and medium | |
CN110365839B (en) | Shutdown method, shutdown device, shutdown medium and electronic equipment | |
EP4415323A1 (en) | Application traffic comprehensive management method, apparatus, and electronic device | |
CN109039752B (en) | Unified gateway-based SOA architecture system management method | |
CN114374657B (en) | Data processing method and device | |
CN116450165A (en) | Method, system, terminal and storage medium for quickly building environment and deploying program | |
CN116170274A (en) | Web application access method, device, system and computing equipment | |
CN115495195A (en) | Data processing method and device and related equipment | |
CN114296890A (en) | Service processing method and power terminal applying same | |
EP3828702A1 (en) | Scaling-out and scaling-in method for nfv system, and relevant apparatus and storage medium | |
CN113572701A (en) | Service interface flow control method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20080402 |