Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of related Operations under CentOS Virtual Machine

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you a sample analysis of related operations under the CentOS virtual machine. I hope you will gain something after reading this article. Let's discuss it together.

After installing the Redhat system in the VM virtual machine

If you need to connect to the linux system with secureCRT

The steps are as follows:

1. Enter the linux system and enter ifconfig at the terminal (note, it is not the ipconfig of windows)

The results are as follows

If you find the ip address, you can ping it on the host. If you can ping it, you can use it.

If not, ask du Niang.

After downloading secureCRT, open it. Enter the ip address of just linux in the host name in the quick connection. The user takes root as an example. After confirmation, you will be asked to enter your password.

After completion, the connection is successful.

Install the glossy + compiler:

Right-click the virtual machine in VM and set

The following figure shows that the iso image file can be installed by choosing the one.

After confirmation, you can see a lot of files in the graphical interface of the virtual machine.

Use root users for operations

Enter cd / enter the root directory at the terminal

Continue to enter

Cd media

Cd RH*

Cd Pa*

Enter the Packages directory

Next, enter

Enter rpm-ivh libstdc++-devel-4.4.6-4.el6.i686.rpm, and enter again after installation

Enter rpm-ivh gcc-c++-4.4.6-4.el6.i686.rpm, and you can complete the installation.

Enter help +-- if a message is displayed, the installation is successful.

Install gdb:

Or use root users for operations

Enter the Packages directory

Enter rpm-ivh gdb-7.2-56.el6.i686.rpm to enter and install

The gdb version information appears when you enter gdb after installation is complete

Set to execute the program without. / from the root directory, or from the current directory

Log in to the user to operate (each user has a different configuration)

Enter cd to enter the host directory

Input

Vi .bash _ profile

At the end of Path, add:.

Enter again after saving and exiting. .bash _ profile to make it effective

Generate core debug files when setting up gdb debugging

Log in to the user to operate

Cd enters the host directory

Enter vi .bashrc

Add ulimit-c unlimited to the last line

Enter again after saving and exiting. .bashrc to make the configuration effective

After reading this article, I believe you have a certain understanding of "sample analysis of related operations under the CentOS virtual machine". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report