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

How the source code installs nginx and mysql

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The following content mainly brings you the source code is how to install nginx, mysql, the knowledge mentioned, slightly different from books, are professional and technical personnel in the process of contact with users, summed up, has a certain experience sharing value, hope to bring help to the majority of readers.

Operating system: CentOS release 6.9 (Final)

Minimized installation of CVM: CentOS-6.8-x86_64-minimal.iso

When installing nginx, mysql and other open source software, you need to install commonly used or specially supported software packages or libraries.

When installing nginx software, you often need to install the following dependent packages or libraries:

# yum install pcre pcre-devel openssl openssl-devel gcc wget-y

When installing mysql software, you often need to install the following dependent packages or libraries:

# yum install gcc gcc-c++ cmake ncurses-devel git-y

Common solutions to errors in mysql installation and configuration:

Question 1:

[root@localhost bin] # mysql

-bash: mysql: command not found

[root@localhost bin] # ln-s / usr/local/mysql/bin/mysql / usr/bin

Question 2:

If the installation fails, you can try it with the following command:

# make clean

# rm CMakeCache.txt

Compile again, and you can.

Question 3:

[root@localhost ~] # service mysqld start

Starting MySQL... ERROR! The server quit without updating PID file (/ application/mysql/data/localhost.localdomain.pid). # the reason is that the database did not initialize successfully.

Question 4

No similar command was found:-bash: mysql_install_db: command not found

Generally speaking, there are either no related libraries installed or the path is not written correctly.

[root@localhost scripts] #. / mysql_install_db-- basedir=/application/mysql-- datadir=/application/mysql/data-- user=mysql # the right way

For the above about the source code is how to install nginx, mysql, if you need to know more, you can continue to pay attention to our industry promotion, if you need to get professional answers, you can contact the pre-sale and after-sale on the official website. I hope this article can bring you some knowledge updates.

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