Linux is very good, very powerful! Shell programming is great and easy to use

Source: Internet
Author: User
Linux is very good, very powerful! Shell programming is great and useful-Linux Enterprise Application-Linux server application information. The following is a detailed description. Yesterday, I went to Shandong Airlines with my colleagues to deal with Websphere. I thought I could have been busy before work in the afternoon, but I didn't expect to have been busy until half past six this morning.

First, the customer needs to change the websphere trial version to Was ND. We are not sure whether the upgrade can be done directly. The answers asked IBM engineers are vague. Therefore, we plan to uninstall and reinstall the product after backing up the data, previously, they used RoseHa as a dual-host for Yamanashi, so it won't affect their normal business and website browsing. After installing the ibm http server, a low-level error occurred, they used redhat AS4, which was previously installed with apache, but was unable to start when ibm httpserver was started. It only showed apache pages, not IHS pages. Ibm's httpserver uses the apache kernel, and the startup commands are the same. apachectl start, although jumping to the IHS bin directory to execute this command, I forgot to add ". /"after this command is missing, apache is started no matter which Directory The apachectl command is executed. It may be very crude because of the environment variables. Later I encountered another problem in websphere debugging and found that the war package could not be released. It seems that there are still some problems to connect to oracle.

Later, when installing the second was server, the system prompts that the path already exists, but the problem is that we obviously uninstalled the previous was program, we suspect that some files still record the installation information. Since all our was files are installed in the shared display, we boldly try to use the first was file that has been successfully installed, as a result, the second server can normally publish information and synchronize data. If it is switched to windows, it is estimated that it will be depressing. After all, the registry should be written in windows, but Linux does not have to worry about this, however, there are still some hidden risks. Various methods have been used for debugging in these processes, and many solutions have been denied one by one. Previously, was installed in the opt directory and is now migrated to the disk array, some script information needs to be modified in RoseHA, but roseha does not have the was agent. Previously, this script was written by manager song and seems to have some problems.

I have discussed with Chen ge how to add & to each command about was to define the execution sequence of some commands, so that the script starts IHS and then WAS first, and stops the script and finds that errors have been reported during umount's execution, that is, busy adds a sleep 10 before umount/was to pause the script for 10 seconds and then execute umount, in order to complete all the tasks and then uninstall the was directory. The results are still relatively smooth. I don't know why there are so many small problems. It was originally a simple installation of was and the debugging of roseha, and these small problems suddenly emerged, such: the alias in the gam_server process and hosts file is defined as bring in bring out in roseha. The most frightening problem is that two Linux servers suddenly crash at the same time at three o'clock! We thought that the shared Disk Synchronization problem occurred. After restarting, we found that the problem may be caused by the roseha operation. Fortunately, the traffic volume was not very large at that time, and the restart was not very serious! Very good, very powerful. If there are still a lot of problems, you will not be able to write them. If you feel that the writing is messy, you can understand it yourself.

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.