当前位置: 首页 > news >正文

LAMP搭建

命令代码(附加两张截图)
1 cd /etc/yum.repos.d
2 vi dvd.repo
3 cat /etc/hosts
4 cat /etc/hostname
5 vi /etc/hostname
6 hostname
7 login
8 vi /etc/hosts
9 ping pai
10 ls /opt
11 mkdir /opt/dvd
12 ls /opt
13 mount /dev/sr0 /opt/dvd
14 ls /opt/dvd
15 cd /etc/yum.repos.d
16 vi dvd.repo
17 yum clean all
18 yum list
19 iptables -F
20 iptables -X
21 iptables -L
22 setenforce 0
23 cd
24 yum install httpd httpd-devel mariadb-server mariadb-devel php php-mysql php-devel
25 systemctl restart {httpd,mariadb}
26 systemctl status httpd
27 systemctl status mariadb
28 mysqladmin -u root password 000000
29 mysql -uroot -p000000
30 ss -tnmlp | grep mysql
31 uname -r
32 ss -tnmlp | grep httpd
33 cd var/wwww/html/
34 cd var/www/html/
35 cd /var/www/html/
36 pwd
37 ls
38 mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.confbak
39 ll /etc/httpd/conf.d
40 cd /var/www/html/
41 ls
42 cat /etc/httpd/conf/httpd.conf
43 pwd
44 vi index.php
45 mv /var/www/html/index.php /mnt/
46 ls /var/www/html/
47 cd
48 ls
49 yum install unzip
50 unzip Discuz-X3.1-SC-UTF8.zip -d /var/www/html/
51 unzip Discuz_X3.1_SC_UTF8.zip -d /var/www/html/
52 cd /var/www/html/
53 ls
54 cd upload
55 cp -rf /var/www/html
56 cp -rf
/var/www/html
57 cd /var/www/html/
58 ls
59 mysql -uroot -p
60 chown -R apache.apache /var/www/html

LAMP搭建
LAMP搭建
在浏览器输入 IP地址 打开
LAMP搭建
安装成功

登录

LAMP搭建
结束

转载于:https://blog.51cto.com/13955540/2174902

相关文章:

  • 自动生成指定特征的数独题目(未完待续)
  • 学习python必备的学习网站
  • Linux服务器性能评估
  • Synchronized与Lock的底层实现解析
  • ES6数组的扩展----Array.from()和Array.of()
  • jdk动态代理和cglib动态代理的区别
  • 设计模式-结构型模式,python组合模式
  • webpack4学习笔记
  • 【leetcode】907. Sum of Subarray Minimums
  • rsync+shell脚本完成自动化备份
  • vlan接口及应用
  • JSP的C标签遍历Map数据
  • c#-WPF string,color,brush之间的转换
  • WPF实现滚动显示的TextBlock
  • 不发不行!Netty集成文字图片聊天室外加TCP/IP软硬件通信
  • IE9 : DOM Exception: INVALID_CHARACTER_ERR (5)
  • -------------------- 第二讲-------- 第一节------在此给出链表的基本操作
  • [译] 怎样写一个基础的编译器
  • 【comparator, comparable】小总结
  • Akka系列(七):Actor持久化之Akka persistence
  • Angular Elements 及其运作原理
  • Centos6.8 使用rpm安装mysql5.7
  • CentOS7 安装JDK
  • const let
  • extjs4学习之配置
  • JS 面试题总结
  • pdf文件如何在线转换为jpg图片
  • React-flux杂记
  • SpringBoot几种定时任务的实现方式
  • uni-app项目数字滚动
  • Vue2.x学习三:事件处理生命周期钩子
  • 安卓应用性能调试和优化经验分享
  • 服务器从安装到部署全过程(二)
  • 区块链将重新定义世界
  • 使用Envoy 作Sidecar Proxy的微服务模式-4.Prometheus的指标收集
  • 推荐一款sublime text 3 支持JSX和es201x 代码格式化的插件
  • CMake 入门1/5:基于阿里云 ECS搭建体验环境
  • FaaS 的简单实践
  • 仓管云——企业云erp功能有哪些?
  • 带你开发类似Pokemon Go的AR游戏
  • ​LeetCode解法汇总2670. 找出不同元素数目差数组
  • # 达梦数据库知识点
  • #### go map 底层结构 ####
  • #define
  • #etcd#安装时出错
  • #NOIP 2014#Day.2 T3 解方程
  • $().each和$.each的区别
  • (echarts)echarts使用时重新加载数据之前的数据存留在图上的问题
  • (PHP)设置修改 Apache 文件根目录 (Document Root)(转帖)
  • (安全基本功)磁盘MBR,分区表,活动分区,引导扇区。。。详解与区别
  • (十七)devops持续集成开发——使用jenkins流水线pipeline方式发布一个微服务项目
  • (转)关于多人操作数据的处理策略
  • (转)重识new
  • .NET Core使用NPOI导出复杂,美观的Excel详解
  • .Net Core与存储过程(一)