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

Https station building experiment

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

The ip of my linux host is 172.16.29.2 and the system is centos7.2. The operation content of using centos6 may be different, mainly because two, one is the database, the centos7 uses the database is mariadb,6 uses mysql;, the second is the httpd program is different, and the two versions vary greatly. Before writing this blog, I originally planned to write a script automation implementation, but in the middle of writing, I found that some of the contents that need to be changed need to use the network to transfer some files, and the versatility is relatively poor. I sorted out the script and organized the language to write this blog. There is a half-written script I also posted in the attachment of the article, if you are interested, you can have a look.

The reason for https is that https is becoming popular all over the station.

1 Environment ready setenforce 0 # turn off selinuxiptables-F # turn off firewall yum install mariadb-server httpd phpphp-mysql unzip php-mbstring mod_ssl-y

Install various components, which in order are database, Apache,php,php connection database component, linux tools to extract zip files, phpMyAdmin required components, encryption components

2 File preparation wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip# download wget https://files.phpmyadmin.net/phpMyAdmin/4.6.5.2/phpMyAdmin-4.6.5.2-all-languages.zip# download mkdir / www # create folder unzip phpMyAdmin-4.6.5.2-all-languages.zip-d / www # extract unzip Discuz_X3.2_SC_UTF8.zip- D/www/discuz/ # decompress chown-R apache:apache / www # change permissions

3 Database systemctl start mariadb.service # Open the database

The next step is to build the library with one click.

Mysql / etc/httpd/conf.d/vhost.conf

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

Wechat

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

12
Report