中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

RAKsmartLinuxVPS安裝LAMP環(huán)境教程

現(xiàn)在很多朋友都喜歡租用RAKsmart VPS,其主要優(yōu)勢是國內(nèi)訪問速度快,性能好,而且租用價格也比較便宜。目前RAKsmart提供美國VPS、香港VPS和日本VPS等國外VPS產(chǎn)品,而且方案種類比較多,支持Linux和Windows兩種操作系統(tǒng),適合不同用戶的建站需求。

成都創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供珠山網(wǎng)站建設(shè)、珠山做網(wǎng)站、珠山網(wǎng)站設(shè)計、珠山網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計與制作、珠山企業(yè)網(wǎng)站模板建站服務,10年珠山做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡服務。

其中使用RAKsmart Linux VPS一般都需要安裝Web環(huán)境才能搭建網(wǎng)站,常見的像是LAMP、LNMP等環(huán)境。本文就給大家介紹下RAKsmart Linux VPS中安裝LAMP環(huán)境的操作步驟,僅供大家參考。

實驗環(huán)境:

Centos7.1版本

252MB內(nèi)存

[root@appmoney ~]#

一、配置Apache環(huán)境

1、安裝Apache

[root@appmoney ~]# yum install httpd httpd-devel

2、啟動Apache

[root@appmoney ~]# systemctl start httpd

3、設(shè)置httpd服務開機啟動

[root@appmoney ~]# systemctl enable httpd

4、查看狀態(tài)

[root@appmoney ~]# systemctl status httpd

5、防火墻設(shè)置開啟80端口

[root@appmoney ~]# firewall-cmd –permanent –zone=public –add-service=http

success

[root@appmoney ~]# firewall-cmd –permanent –zone=public –add-service=https

success

[root@appmoney ~]# firewall-cmd –reload

success

6、瀏覽器登陸

訪問IP地址(獨立IP),出現(xiàn)以下界面說明安裝成功:

二、MySQL環(huán)境配置

1、安裝MySQL

[root@appmoney ~]# yum install mariadb mariadb-server mariadb-libs mariadb-devel

[root@appmoney ~]# rpm -qa |grep maria

2、開啟MySQL服務,并設(shè)置開機啟動和檢查狀態(tài)

[root@appmoney ~]# systemctl start mariadb

[root@appmoney ~]# systemctl enable mariadb

[root@appmoney ~]# systemctl status mariadb

[root@appmoney ~]# netstat -tulp

3、數(shù)據(jù)庫安全設(shè)置

[root@appmoney ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we’ll need the current
password for the root user. If you’ve just installed MariaDB, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
… Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
… Success!

Normally, root should only be allowed to connect from ‘localhost’. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] n
… skipping.

By default, MariaDB comes with a database named ‘test’ that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
– Dropping test database…
… Success!
– Removing privileges on test database…
… Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
… Success!

Cleaning up…

All done! If you’ve completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

4、登陸MySQL數(shù)據(jù)庫測試

[root@appmoney ~]# mysql -uroot -p

三、PHP環(huán)境配置

1、安裝PHP

[root@appmoney ~]# yum -y install php

[root@appmoney ~]# rpm -ql php

2、將PHP與MySQL關(guān)聯(lián)起來

[root@appmoney ~]# yum install php-mysql

[root@appmoney ~]# rpm -ql php-mysql

3、安裝常用PHP模塊

[root@appmoney ~]# yum install -y php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-bcmath

4、測試PHP

[root@appmoney ~]# cd /var/www/html/

[root@appmoney html]# ls

[root@appmoney html]# vi info.php

<?php
phpinfo();
?>
~
~
:wq

5、重啟Apache服務器

[root@appmoney ~]# systemctl restart http

6、在電腦瀏覽器輸入 IP/info.php,觀察能否看到已經(jīng)安裝的模塊。

以上就是這次RAKsmart Linux VPS安裝LAMP環(huán)境教程,安裝完成后就可以安裝WordPress等各種程序了。

相關(guān)推薦:《RAKsmart VPS主機控制面板SolusVM使用介紹》

微信掃碼加好友進群

主機優(yōu)惠碼及時掌握

QQ群號:164393063

主機優(yōu)惠發(fā)布與交流

1 標簽:RAKSmart 國外vps

名稱欄目:RAKsmartLinuxVPS安裝LAMP環(huán)境教程
本文來源:http://www.rwnh.cn/article12/cppjdc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、面包屑導航、搜索引擎優(yōu)化網(wǎng)站營銷、標簽優(yōu)化、網(wǎng)站維護

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護公司
云南省| 鸡西市| 张北县| 华亭县| 鄂伦春自治旗| 江永县| 从化市| 札达县| 松桃| 壤塘县| 东安县| 新化县| 闽侯县| 闵行区| 吉林市| 兰西县| 宣城市| 贵德县| 莱州市| 郓城县| 福安市| 乌海市| 苍山县| 汉中市| 营口市| 霍林郭勒市| 镇坪县| 通道| 莱芜市| 长白| 云安县| 楚雄市| 健康| 庆安县| 安陆市| 天门市| 宿迁市| 汶上县| 佛学| 贵溪市| 西昌市|