On the code:#!/bin/bash#engine server Install#write by guojr#set Engine server Dirjdk=jdk-6u34-linux-x64-rpm.binchmod o+x $JDK Echo-e "\ n" |/$jdk;(cat Echo-e "\ n" |./$JDK; This is the most critical step. Skip Enter auto-install JDKThis article is from the "david0512" blog, make sure to keep this source http://gjr0512.blog.51cto.com/6518687/1611469Shell Script Auto
/javase/downloads/index.htmlwindows: 1) Create a new java_home variable in the system variable, the value of the variable is: C:\Java\jdk1.7.0_67 (fill in according to their own installation path)2) New CLASSPATH variable, the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar3) Add variable value in Path variable (existing without new):%java_home%\bin;%java_home %\jre\bin (Note the value of the variable with ";" SeparatedReference:1, How-to-automate-download-and-installation-
httpdhttpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off2:chkconfig can also be used to set whether a service is started or deactivated within a specified runlevel. For example, to deactivate the NSCD service in RunLevel 3, 4, 5, use the following command:Chkconfig–level 345 NSCD off3: Services managed by XINETD are immediately affected by chkconfig. For example, if xinetd is running and finger is disabled, then finger does not have to manually restart xinetd to be enabled immediately after chkconfig f
[Programming instance] Use vbs script to addProgramTo the auto-start item
Tip: WriteArticleThen we found that the csdn editor filtered out some characters, such as , so the following script may run incorrectly .. Add this character to the viewer.
There are many vbs script functions, but sometimes we only need some
today, yesterday's script was optimized, the script feature can be installed according to the options, although not as easy as one-click installation script, but added the option variable, in other scenarios will be used frequently. The output process is also hidden, making it easier to see the installation process. (due to different circumstances, for reference
Label: Style Color Io OS AR for SP on AMPReview variable CC
Initially inauto/optionsInitialized in the script:
CC=${CC:-gcc}1 C compiler feature
The compiler for Windows is calledMSVCOther platforms are collectively calledC Compiler.1.1 obtain compiler Parameters
This script is not complex.NGX_PLATFORMVariable to determine whether it iswin32(The variable is inauto/options). If yes, then:
ngx_feature="C comp
started
If it is not started, enter:
$ Lsnrctl start
Start listener
SQL> conn sys @ orcl as sysdba
Then enter the password and sys will log on to the database as sysdba.
III. start emctl
In addition, we can also find that http://localhost.localdomain: 1158/em is currently no response, here to start another, the startup command is as follows:
$ Emctl start dbconsole
The command runs for a long time. the execution result is as follows:
After you manually start the Oracle database, create a
command runs for a long time. The execution result is as follows:
After you manually start the Oracle database, create a script for the system to start Oracle.
4. Oracle startup and stop scripts
1. Modify the Oracle system configuration file:/etc/oratab. Only in this way can dbstart and dbshut of Oracle be used.
# Vi/etc/oratabOrcl:/opt/oracle/102: Y
# Entries are of the form:# $ ORACLE_SID: $ ORACLE_HOME:
2. Create the file oracle under/etc/init.
The other articles are similar to those in coldfusion. You can directly present Tomcat6 and set the self-starting script on Ubuntu8.04:/etc/init. d/tomcat #! /Bin/sh # Tomcatauto-start # description: Auto-startstomcat # processname: tomcat # pidfile:/var/run/tomcat. pidexport
The rest are similar to the coldfusion article, so we will directly present Tomcat 6 to set the self-starting
Tags: mongodb self-starter script Init.dAfter the installation of MongoDB, has been the following start, specify Dbpath,logpath, verify auth, etc../mongod--dbpath=/usr/bin/mongodb/mongodb/data--logpath=/usr/bin/mongodb/mongodb/log/mongodb.log--authBut more and more trouble, write more parameters, and are prone to error, because decided to enable a MongoDB automatic script
Writing parameters to a co
An error occurred running the ASP. NET Core program as follows:Chrome script debugging is enabled in Visual Studio
To set breakpoints for Javascript/typescript in Visual Studio
Automatic interrupt Error in script
Opening the developer tool in Chrome causes the script debugging session to stop
Learn more about Chrome debugging in Visual StudioLaunchin
This article explains the timing plan from the installation to an automatic duty exampleInstall Crontab:[Root@centos ~]# Yum Install Vixie-cron[Root@centos ~]# Yum Install Crontabs
DescriptionVixie-cron packages are Cron's main programs;The Crontabs package is a program used to install, uninstall, or enumerate the tables used to drive the cron daemon.//+++++++++++++++++++++++++++++++++++Cron is a built-in service for Linux, but it does not automatically get up, you can start and close the servic
Android Auto screenshot (off manual operation, automatically saved to PC)@echo offThe echo * file is saved under E:\takeshont and is named after the current date + time.Echo =================================================echo * If you cannot delete or upload after stopping, you can delete the Adb.exe process from the Task ManagerEcho =====================================================================echo * is, do not close this window ...Set t=%ti
Script implementation purposes:Update the war package with SVN to delete the cache at the same time.Turn Tomcat off completely and start Tomcat with the specified user.Considerations:The execution function is: zzz01The Tomcat path is/usr/localStart tomcat user for wwwNote the use of Xargs#!/bin/bashfunction zzz01 () {Su-www-c "Rm-rf/usr/local/tomcat_imp_stockrecord1/webapps/imp-stockrecord-web"Su-www-c "rm-rf/usr/local/tomcat_imp_stockrecord1/work/*"S
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.