1. Start GDBYou must use the gcc-g command to generate an executable program with debug information before you can debug a C + + program using GDB:$ gcc-g-O Hello hello.cYou can then use GDB to debug the generated hello binaries.$ gdb HelloGDB will
There are two ways to boot the Tomcat on Linux, one is simple, one is complex and professional, and we generally recommend the shell script startup method to implement using Shell script. Here are two methods that we'll cover separately.1.shell
Linux File Deletion principle: Linux is controlled by the number of link to delete the file, only if a file does not exist any link , the file will be deleted. In general, there are 2 link counters for each file: I_count and i_nlink. The meaning
Linux System Expansion Method summaryBelieve that many friends have had such an experience, I would like to play a ubantu, did not expect to play for a long time but not accustomed to windows, but began to install the system only allocated a very
NETSTAT-NUPL (UDP-type port)NETSTAT-NTPL (Port of TCP type)A means alln indicates that DNS is not queriedT represents the TCP protocolU means UDP protocolP indicates the program occupied by the queryL indicates that the query is listening on the
The free command displays the idle, used physical memory and swap memory in the Linux system, and the buffer used by the kernel.[Email protected]:~$ free-hTotal used free shared buff/cache availablemem:3.8g 1.3G 928M 27M 1.7G 2.2Gswap:4.0g 0B
TAB: Auto-completeCTRL + C Close1. Logout, shutdown, restart-Logout: Logout: Logout, exit (just exit the account)-Shutdown: (need to be root or be granted permission by root)Shutdown-h time-H: ShutdownTime1. Now: Right away2.12.30: Specify a
Directory:Basic operation of 1.sed, mode space, advanced operationWhat is one.1 sed?Streaming editor, the text content line-wise, you can copy, delete, modify the fileONE.2 sed formatSed-n '/^for/p '/etc/passwd lists the lines in the/etc/passwd file
1.whereisWhereis whowhereiscan only search binaries (-B), man Help file (-m) and source code file (-s)2.locateSo sometimes when you just add a file, it may not be found and requires a command to be executed manually updatedb(This command must be
Total used free shared buffers cachedmem: 8061128 3604036 4457092 324 191296 2283328-/+ Buffers/cache: 1129412 6931716Swap: 0 0 0Above is the result of the free command,
First, user group conceptin a Linux system, each user must belong to a group and cannot be independent of the group. Each file has the three concepts of owner, group, and other group. (1) Owner: Typically the creator of the file, who created the
1: Temporary modification:1.1: Modify IP Address# ifconfig Eth0 192.168.100.1001.2: Modify the gateway address# route add default GW 192.168.100.1 dev eth01.3: Modify DNS# echo "NameServer 8.8.8.8" >>/etc/resolv.confThis time will be able to surf
See all NIC IP addresses--ip addrStart firewall--systemctl start Firewalld.serviceStop firewall--systemctl Stop Firewalld.serviceView FIREWALLD firewall status--firewall-cmd--stateDisable firewall boot--systemctl disable Firewalld.serviceLists the
Insmod: Load ModuleParameters:-F does not check that the current kernel version is consistent with the kernel version at the time of module compilation, forcing the module to be loaded.-K Sets the module to dismount automatically.-M output module
Nginx Load BalancingUpstream mysvr {
Server 192.168.10.121: 3333; server 192.168.10.122: 3333;} server {... location ~ * ^. + $ {Proxy_pass http: // mysvr; # redirect requests to the server list defined by mysvr}
Upstream mysvr {
Server http: // 1
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