摘要:安装相应的源查看版本安装安装扩展安装安装修改密码新增用户端口开启端口开启重启防火墙使配置生效
安装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 #重启防火墙使配置生效
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/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...
阅读 2262·2021-09-28 09:36
阅读 1995·2021-09-22 15:14
阅读 3622·2019-08-30 12:47
阅读 3034·2019-08-30 12:44
阅读 1225·2019-08-29 17:06
阅读 535·2019-08-29 14:12
阅读 973·2019-08-29 14:01
阅读 2580·2019-08-29 12:17