当前位置: 首页 > 工具软件 > TinyShop > 使用案例 >

TinyShop环境搭建

谢翰学
2023-12-01

1.修改IP或修改DNS后一般需要重启网络服务:
service NetworkManager restart
service network restart

2. 启/停apache服务
service httpd start
service httpd stop
service httpd restart

3. 启/停mysql服务
service mysqld restart
service mysqld start
service mysqld stop

4. 关闭linux内核安全增强模块(该模块会隔离应用的互相访问权限,比如会限制apache站点访问mysql路径等)
临时关闭:setenforce 0
(如果永久关闭的话需要修改文件,百度~)

5. 启/停防火墙
service iptables restart
service iptables stop
service iptables start

 

1.      打开虚拟机—计算机—var—www—html  

2.      将TinyShop_V2.2.zip拖到html中并将其解压至该位置

3.      打开终端,运行命令:解压-->修改权限-->查看apache是否启动-->关闭防火墙和内核增强模块-->编辑网络-->查看ip地址

Cd/var/www/html

Unzip TinyShop_V2.2.zip

Chown apache:apache –R html

Sevice httpd status

Service mysqld status

Service httpd start

Service mysqld start

Service iptables stop

Setenforce 0

Setup               把防火墙关了

右击右上角网络-->编辑连接-->编辑-->自动连接

Ifconfig

设置其他计算机访问本机TinyShop

1.      右键虚拟机右下角图标—设置—将网络适配器右侧改为“桥接”,勾选“启动时连接”

2.      右键虚拟机右上方计算机图标—编辑连接—编辑—IPV4(方法改为“手动”—添加地址/子网掩码/网关--应用

地址:172.17.21.122

掩码:255.255.255.0

网关:172.17.21.254

 类似资料: