摘要:安裝相應的源查看版本安裝安裝擴展安裝安裝修改密碼新增用戶端口開啟端口開啟重啟防火墻使配置生效
安裝php7相應的yum源
CentOS?7.x:
rpm -Uvh https://dl.fedoraproject.org/... rpm -Uvh https://mirror.webtatic.com/y...CentOS??6.x:
rpm -Uvh https://mirror.webtatic.com/y...查看版本
yum search php7
安裝php7
yum install?mod_php71w php71w-opcache php71w-fpm安裝php7擴展:
yum install php71w-gd php71w-mbstring yum install php71w php71w-bcmath php71w-cli php71w-common php71w-devel php71w-fpm php71w-gd php71w-mbstring php71w-mcrypt php71w-pdo php71w-pear php71w-pecl- php71w-process php71w-xm安裝nginx
yum install nginx
安裝mysql
wget https://dev.mysql.com/get/mys...
rpm -Uvh mysql80-community-release-el7-2.noarch.rpm?
yum repolist all | grep mysql
vim /etc/yum.repos.d/mysql-community.repo
yum repolist enabled | grep mysql
yum install mysql-community-server
service mysqld start
mysql 修改密碼
mysql> use mysql;
mysql> UPDATE user SET Password = PASSWORD("newpass") WHERE user = "root";
mysql> FLUSH PRIVILEGES;
liunx新增用戶
useradd admin
groupadd admin
passwd admin
contos7端口開啟
firewall-cmd --query-port=8083/tcp
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
systemctl start firewalld
systemctl stop firewalld
systemctl status firewalld?
contos6端口開啟
yum?-y?install?iptables-services
vi?/etc/sysconfig/iptables
systemctl?restart?iptables.service?#重啟防火墻使配置生效
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/40408.html
摘要:安裝路徑存放源包路徑創建用戶組和用戶下載解壓查看編譯配置參數編譯參數編譯安裝里面編譯自動啟動腳本下面是里的內容自啟級別創建用戶組和用戶解壓創建用戶組和用戶是配制文件在下面增加以前修改權限做個軟連接 mkdir /data mkdir /data/soft #安裝路徑 mkdir /data/soft/src #存放源包路徑 創建nginx用戶組和用戶 groupadd nginx...
摘要:安裝路徑存放源包路徑創建用戶組和用戶下載解壓查看編譯配置參數編譯參數編譯安裝里面編譯自動啟動腳本下面是里的內容自啟級別創建用戶組和用戶解壓創建用戶組和用戶是配制文件在下面增加以前修改權限做個軟連接 mkdir /data mkdir /data/soft #安裝路徑 mkdir /data/soft/src #存放源包路徑 創建nginx用戶組和用戶 groupadd nginx...
閱讀 2272·2021-09-28 09:36
閱讀 2038·2021-09-22 15:14
閱讀 3634·2019-08-30 12:47
閱讀 3043·2019-08-30 12:44
閱讀 1239·2019-08-29 17:06
閱讀 543·2019-08-29 14:12
閱讀 983·2019-08-29 14:01
閱讀 2586·2019-08-29 12:17