CentOS System Fault Analysis and troubleshooting
I. Log Analysis and Management
1. log file classification
Kernel and system logs
System Service syslog Management
User logs
Records Information about system user logon and exit.
Program log
Log files managed independently by various applications, with different recording formats
2. logs are saved under/var/log.
Kernel and public message log:/var/log/messages
Scheduled task log:/var/log/cron
System Boot
"Original" https://www.toutiao.com/i6595365358301872643/ Preface OutOfMemoryError the problem that many friends have encountered, compared to common business exceptions (array out of bounds, null pointers, etc.) such problems are difficult to locate and solve.In this paper, a recent encounter on the online memory overflow location, the way to solve the problem, I hope to encounter similar problems with students to bring ideas and help.Mainly from performance--and
wireless troubleshooting visualization
2.1 The visualization of wireless network topology
A different wireless network topology. When we discuss the wired network topology map, we simply connect the client to the physical interface of the access switch. But in wireless the same AP also needs to discuss its ESS/BSS problem, so the topology map should be the client access to which BSS, and then this BSS access to which ESS. Therefore, the topology ma
Tags: Rookie inn12.11Xshell Remote connection server and troubleshootingContent:1) CentOS Network configuration (setup) 2) optimization of Xshell3) Xshell Remote connection server (1)Windows about vmware related services to run (a total of 5 Services) (2)Vmware Network configurationSub-Network IP 10.0.0.04) Xshell remote connection Troubleshooting 5) VMware Three network modes 1.Centos Network configuration 1. TemporarySETUP------Network Configurati
Description of the problem encountered:An error occurred during the installation of AssemblyA microsoft.vc90. CRT, version=9-0.30729 1, publickey token= "1fc8B3b9ale18e3b,processorarchitecture= "AMD64", type= "Win32Please refer-to-help and support for more InformatiozResolution process:Baidu to find a variety of information, the answer is different, no patching, Microsoft VC + + software errors and so on (all have been tried on the bad reload system)Open the Python installation package The first
bugNfs_wait_bit_uninterruptible:https://bugzilla.kernel.org/show_bug.cgi?id=15552Verify:Machine Disk Condition:A machine:/usr/local#df-hfilesystem SizeUsedAvailUse%Mountedon/dev/sda1 9.9g1.8g7.6g20% /udev 3.9G296K3.9G1%/dev/dev/sda3 20g13g6.4g 67%/usr/local/dev/sda4 103g28g70g29%/datab Machine:/xx/htdocs 103g 30g68g31%/xx/admin/htdocs Access mounted directory, unreachable, long-time unresponsive Accessing remote NFS service Machine B, discovering that the machine is super high and basically
General flow of Linux network configuration and troubleshootingposted on March 10, 2017First # ping www.baidu.com found error unknown this domain name# ping Www.baidu.comPing:unknown Host Www.baidu.comAfter # ping 8.8.8.8-c 3 If it does not pass, thenView the domain name server cat/etc/resolv.conf found inside the Google public DNS service (if not set)#cat/etc/resolv.conf# Generated by NetworkManagerNameServer 8.8.8.8View Gateway issues: grep gateway/etc/sysconfig/network-scripts/ifcfg-eth0If no
file is open and is in (4) space And no Lock (5)-: Indicates that the file's state mode is Unknow, and is locked at the same time after the file state mode, followed by the relevant lock (1) N: forA Solaris NFSLockof unknown type; (2) R: forReadLockOn part of the file; (3) R: forA readLockon the entire file; (4) W: forA writeLockOn part of the file; (partial write lock of files) (5) W: forA writeLockon the entire file; (write lock for the entire document) (6) U: forA read and writeLockof any le
1.error:cannot Resolve path (or pattern) ' macaca-test 'This is because the use case directory is not entered when the Run command is executedC:\users\tony\node_modules>Macaca run>>Webdriver SDK launched>> C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha \lib\utils.js:628 Throw NewError ("cannot resolve path (or pattern) '"+ Path +"'"); ^error:cannot Resolve path (or pattern)'macaca-test'At object.lookupfiles (C:\Users\Tony\AppData\Roaming\npm\node_modul
General Real machine Debugging when the file Explorer Ddms inside can not open the/data directory, but it is easy to solve.1, first phone to root. This is very simple, a lot of information and software on the Internet.2, only after root not yet, download an ES file browser (or similar software), grant the software root permissions.3, then hand in the ES inside find/data directory, modify its properties. Open all of its rights to read, write, and execute.And then you're done.Problem with/data dir
view permissions through statStat..File: '. 'size:4096 blocks:8 IO block:4096 Directorydevice:802h/2050d inode:1046530 Links:3Access: (0755/drwxr-xr-x) Uid: (0/root) Gid: (0/root)access:2017-01-29 04:03:28.585978590 +0800modify:2017-01-29 04:03:08.505176624 +0800change:2017-01-29 04:03:08.505176624 +0800Service startup problem: Unable to start service:You can view disk space when it is full. Or whether the Innode is full.The log is written to the service when it is started. If the disk is full,
I often in Linux by compiling the. sh file to build the project, has been no problem, the code has not changed, but the compilation today, but the error is prompt:Then I was very puzzled to see my. sh file, which has a lot of [], are these errors, but has been no problem.Later found, because Ubuntu default sh is connected to dash, but also because of the dash and bash is not compatible so error. When executing, you can change SH to bash file name. sh to execute. The dash is something, checked, i
Troubleshooting Linux under QT program "Qstring::arg:argument missing: Unable to parse symbols in Sslv2_client_method" errorIn the Linux development QT application, the program will report such errors:Qstring::arg:argument Missing: Unable to resolve symbol "Sslv2_client_method" in Sslv2_client_method: SSL, (/lib/x86_64-linux-gnu/ libssl.so.1.0.0:undefined Symbol:sslv2_client_method)Qstring::arg:argument missing: Unable to parse the symbol "Sslv2_clien
carefully as an OPS person. Focus on the obvious issues, such as in a typical lamp application environment:
apachenginx; query access and error log, directly looking for 5xx error, and then see if there are limit_zone errors
Mysql; Find the error message in Mysql.log, see if there is a corrupted table, whether there is a InnoDB repair process is running, whether there is disk/index/query problem
PHP-FPM: If you set up a php-slow log, just look for the error message
Conclus
://s3.51cto.com/wyfs02/M00/6C/42/ Wkiom1vcprhtd7ikaabqknvbt80976.jpg "alt=" Wkiom1vcprhtd7ikaabqknvbt80976.jpg "/>650) this.width=650; "title=" Dump3.png "src=" Http://s3.51cto.com/wyfs02/M02/6C/42/wKiom1VCPbuQrzQUAALtk_ Lauuk900.jpg "alt=" Wkiom1vcpbuqrzquaaltk_lauuk900.jpg "/>8, because the system operation of all logs error Square are in/var/log/messages we just grep out setroubleshoot that line can see the actual content of the error650) this.width=650; "title=" Dump4.png "src=" http://s3.51
switch, or by using a later version of GCC.OtherFinally, with a query on the data you see the GCC to switch to do the optimization ...Reference
What is the size of a enum type data in C + +? -Https://stackoverflow.com/questions/8115550/what-is-the-size-of-an-enum-type-data-in-c
Guard code after switch on enum is never reached-https://stackoverflow.com/questions/8679534/ guard-code-after-switch-on-enum-is-never-reached/8679627
Bug 41425-switch with enums doesn ' t work-https://g
01-"Ideas"As we all know, if the request of post can be configured in Web. XML org.springframework.web.filter.CharacterEncodingFilter way to solve the garbled problem,But the Get method has to request that the filter is not set to the desired encoding. Only get the request path to think about how to solve the coding problem.02-"Workaround 01-Code Resolution"String Des=new string (testname.getbytes ("Iso-8858-1"), "Utf-8");TestName: Incoming Get parametersDes: Converts the encoded value03-"Workar
A few days ago, the first computer was using an unpacked jdk (with JRE), but could not open the jar file. So downloaded a jre1.8 from the Internet, and then the problem came, Eclipse opened the error, pop up a box, in the Eclipse directory created a 232132321.log file. Online search a lot of said re-install Eclipse, but reload no use, the jre1.8 deleted also useless. Had to be restored until the jre1.8 was installed, the problem was resolved. Today, with the jar open again, there is no way, and
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.