The No. 481 Day of work

Source: Internet
Author: User

I learned something new today because of my laziness and the little obsessive compulsive disorder.

First of all, because a server software is composed of a number of servers, such as gateway server, logical server, database server, landing server, log server, background server and so on. So, special I every time I open a server to each file to open, special every test for me to get a run to reopen it, which for so lazy me to be intolerable.

So, in the absence of QT in the machine, I can only find out, get some simple bat script to play. The egg hurts, not even DOS instructions I, the following some simple statements to get me two hours ha.

The first is to create a new bat under each server software, such as a logical server, it's full E:\Legend\server\build\LogicServer\LogicServer.exe, and then I'm E:\Legend\server\ A new startlogicserver is created under the Build\logicserver\ folder. BAT, write 4 words inside:

E::: Enter E-drive

CD \legend\server\build\logicserver:: Enter the directory where the program is located

Start "" "LogicServer.exe":: First "" is the console header, the second is the program to be executed in the console

Exit:: Exit

Then a bat is built on the desktop, named Startgameserver.bat, and the content is simple:

Start "" E:\Legend\server\build\LogicServer\StartLogicServer.bat ":: Start Logicserver Script

ping localhost > nul:: For delay

Start "" "E:\Legend\server\build\DBServer\StartDBServer.bat" ...

......

On the above a few words ha, consumed me two hours, but the study came out I am very happy ah. I see others are a point, just a double-click on it, can do better than others, I am very happy to enjoy this feeling, even if it is insignificant things.

Besides, something happened tonight that made me feel like I really shouldn't. I asked a very stupid question, "Does the gateway server directly connect to the database server?" "This question to tell the truth, is my own debugging method wrong and out of, even I myself feel silly." And then he came over and told me about the architecture of the server. I know what the whole architecture is like, but he's going to tell me, and then I'm afraid he'll feel like I don't know, and then he's eager to show up, and when he says I've had two mouths, I've been so powerful.

Feng elder brother did not and I care, I said immediately after I regretted, I feel really silly, he told me I should listen quietly, so that can be very good to meet his teaching desire, also can let himself behaved obediently. Really powerful people are not eager to express their own, only the superficial people like me will do so, warning, no precedent!

OK, punish yourself not to eat, tomorrow to continue to study hard, hard work.



The No. 481 Day of work

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.