阿里雲伺服器搭建MySQL資料庫 RPM格式

2021-08-25 12:05:17 字數 865 閱讀 7073

1.輸入命令

wget

2.安裝mysql

rpm -ivh mysql-community-release-el7-5.noarch.rpm

3.安裝服務

yum install mysql-community-server

4.重啟mysql服務

service mysqld restart

5.進入mysql

mysql -u root

6.選擇資料庫

use mysql

7.修改密碼

update user set password=password(『123456』) where user=』root』;

8.重新整理

flush privileges;

9.使用user和password從任何主機連線到mysql伺服器,user改為使用者名稱,password改資料庫密碼

grant all privileges on . to 『user』@』%』identified by 『password』 with grant option;

10.重新整理

flush privileges;

11.退出

exit

12.編輯etc/sysconfig/iptables檔案

vi etc/sysconfig/iptables

13.加入3306埠開放

.-a input -p tcp –dport 3306 -j accept

14.重新整理

flush privileges;

15.在阿里雲控制台配置安全組放行mysql埠

16.測試連線

阿里雲伺服器搭建

1.購買伺服器後使用遠端連線 可以使用阿里雲網頁自帶的遠端連線,進行連線 進入介面輸入sudo su root切換成root模式進行操作 也可以使用其他互動軟體進行連線,如putty 阿里雲的操作例項 2.安裝lnmp 進入 複製安裝指令貼上到遠端連線內開始安裝 wget co lnmp1.6.ta...

阿里雲伺服器搭建 nginx服務

1.安裝nginx軟體所需依賴包 yum install y gcc gcc c autoconf pcre pcre devel make automake wget httpd tools2.配置nginx官方 yum源 root web vim etc yum.repos.d nginx.re...

阿里雲搭建SVN伺服器

1 安裝svn apt get install subversion 2.開啟svn伺服器 svnserve d 檢查是否開啟 ps aux grep svnserve 若出現如下內容 wkr 6537 0.0 0.0 13784 956 ss 16 18 0 00 svnserve d wkr 7...