Linux Server Operations

Source: Internet
Author: User
Tags system log tar unzip

Cd/usr/local ls Nginx
18502167909 High


10.4.233.21
10.4.233.72
Clean Car Auto Cache Nginx Mall OpenCms Chache
Root Tplife
10.4.233.21 ssh 10.94.207.5 CD Usr/local/nginx-che/che-cache
10.94.207.5 10.94.207.6
Clean Store Opencms_cache Cache
10.94.207.5 10.94.207.6
/usr/local/nginx-mall/opencms_cache
15601607676 Ginger 10.94.70.10

Short Address modification
Original address: Http://baoxian.cntaiping.com/edm!mbO.action
Short Address: http://baoxian.cntaiping.com/m
10.94.70.5 10.94.70.6
Cd/usr/local/nginx-http/conf/baoxian.cntaiping.com.rewrite.conf
Write in the last line:/m/edm!mbo.action permanent; ^/m (/)? $/edm!mbo.action permanent;
Reboot: CD vhosts/./. /.. /sbin/nginx-s Reload


Netstat-lntp
Synchronizing files
Cd/tpdata/shell_script/rsync SH minisite_rsync.sh

SSH [email protected]
Du-sh *
Netstat antp|grep LISTEN
RM-RF File Delete Files
CD File entry Directory
CD-Back to previous level
CD ' Back to root directory
MV File1 File2 renamed File1 to File2
Cp-a file/home/weblogic/www Copy all files under the file directory to the WWW directory
Df-h Viewing disk space
Tar xvf file.tar Unzip the tar file

Automatically open artboards: MSPaint ipconfig notepad excel

Output process number: Ps-ef|grep WebLogic
Df-h # Viewing the usage of each partition
View Memory: Free-m df-h
PWD ll
TAIL-FN 100
Show current path: pwd
Delete: RM-RF file name
New file: mkdir file name
View log: IPCS
Cp-a file/home/weblogic/www Copy all files under the file directory to the WWW directory
Re-name: MV File1 filee2
Ps-ef|grep WebLogic

You need to distinguish between checking the application log or the system log, the system log is below/C
Ps-ef|gref Wheblogics
Tail-f Error.log
SSH cp-r file files
View log: Tail-f file name
System not automatically launched: Call pause
Server Jump: Ssh-l usename IP;
View users: Ps-aux|grep ssh or w/who
Restarting the server and log

To publish a new project:
1.uat-ant.xml modification
<property name= "ProjectName" value= "Taiping-sol-insu-fund"/>
<property name= "Sshname" value= "uat-unzip-insu-fund.sh"/>
<property name= "Server" value= "10.1.17.121"/>
2.uat-unzip-insu-fund.sh modification
d= "fund"
War= "Taiping-sol-insu-fund.war"

Ps-ef|grep WebLogic------------ef|gref Java
10.1.17.93
Kill-9 ID (AdminServer)
RM-RF Edit.lok
View logs: CD tpsys/weblogic/user_projects/domains/tp_managed/servers/adminserver/logs Admin.server.log
Restart Project: CD Tpsys/weblogic/user_projects/domains/mall SH startweblogic.sh
Restart Weblogic:cd/tpsys/weblogic/user_projects/domains/tp_managed/start startadminserver.sh
CD tpsys/weblogic/user_projects/domains/tp_managed SH startweblogic.sh
10.1.17.94
CD tpsys/weblogic/user_projects/domains/tp_managed start startadminserver.sh

10.1.17.95
View logs: CD Tpsys/weblogic/user_projects/domains/admin.server.log
Cd/tpsys/weblogic/user_projects/domains/tp_manged/sh startweblogic.sh
Tail-f 200
CD Vehicle/logs/server.log
View logs: CD Tpsys/weblogic/user_projects/domains/mall logs Server.log
: CD tpsys/weblogic/user_projects/domains/vehicle Logs Server.log
: CD tpsys/weblogic/user_projects/domains/ibuy Logs Server.log

CD Tpdata/taiping-logs/mall/debug.log
10.1.17.97
RM-RF Edit.lok
View System log: CD Tpsys/weblogic/user_projectd/domains/svc-log/logs
View logs: CD tpsys/weblogic/user_projects/domains/mall-mgr logs Server.log
CD tpsys/weblogic/user_projects/domains/admin start startadminserver.sh
10.1.17.121
Restart Project: Cd/tpsys/weblogic/user_projects/domains/b2b2e/start startfunserver.sh
View log: Cd/tpsys/weblogic/user_projects/domains/b2b2e/logs tail-f bib2eserver_1.log
Restart Weblogic:cd/tpsys/weblogic/user_projects/domains/b2b2e/start startadminserver.sh

----------------------------------------------------------------------------------------------
Netstat-lntp
CD mall/servers/mall_server_2/data/
Ldap/store/default
_wls_mall_server_2000000.data
MV _wls_mall_server_2000000.data _wls_mall_server_2000000.data.20150319
SH Startmall


Find-name *. Dat


Password forgot to restart the process boot.properties


Message monitoring: Root
10.4.233.22
CD tpdata/nagios/libexec/


Http://10.1.17.140:7001/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePage
Vehicle-server1 7004
<property name= "Server" value= "10.1.17.140"/>10.1.17.95
Server with root user shutdown, start error;
Su WebLogic
Chown Weblogic.weblogic-r/tpdata/weblogic/user_projects/domains/malldomain/servers/adminserver/data
Chown Weblogic.weblogic-r/tpdata/weblogic/user_projects/domains/malldomain/servers/adminserver/data/stroe
SH startweblogic.sh
SH stradminserver.sh

Linux Server Operations

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.