远程访问xampp access forbidden

别再只盯着CXL协议了,聊聊CXL.mem里那个能动态调优内存性能的‘QoS遥测’到底怎么用 本文深入解析CXL.mem协议中的QoS遥测功能,探讨如何通过DevLoad指标动态调优内存性能。文章详细介绍了QoS遥测的核心机制、多QoS类别设备的实战配置,以及AI训练、金融交易和视频处理场景中的优化案例,帮助数据中心实现高效内存资源管理。 阅读详情

lampp不仅只能在局域网访问,而且它可以被远程访问

方法就是编辑httpd-xampp.conf(/opt/lampp/etc/extra/httpd-xampp.conf)文件

# New XAMPP security concept
#
<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”>
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

然后把 Deny from all 注释掉

#Deny from all

 

注意:编辑配置文件时最好先备份,下载到本地用dw编辑保存上传!最好不要用leapFTP自带的内部编辑器,容易出错!!

完成之后保存退出,需要重启lampp (/opt/lampp/lampp restartapache)

重启后就可以远程登录xampp了,默认的管理员的用户名是lampp,密码是自己在security时设置的

 

没有权限连接mysql服务器:

Can't connect to MySQL server on '' (10060)

 

远程连接服务器出现以上错误
主要有三个原因:
1、mysql授权表里没有远程机器的权限,及需要在授权表mysql.user添加
(1)grant all privileges on *.* to 'root'@'远程登陆IP' identified by '远程登陆密码';
(2)flush privileges;

 

mysql  user表默认两个root用户,要想远程连接mysql必须把用户的host 设置成%,并且赋予权限

用户 主机 类型 权限 授权 操作 
root  % 全局  ALL PRIVILEGES  是  
root  localhost 全局  ALL PRIVILEGES  是 

两个root  修改不是localhost的那个root的host为% 就可以远程访问了!
2、网络不通,这个就不说了。
3、防火墙禁止3306端口,以iptable为例
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306-j ACCEPT  
service iptables restart
ps:  iptables设置
1) 重启后生效 
开启: chkconfig iptables on 
关闭: chkconfig iptables off 
2) 即时生效,重启后失效 
开启: service iptables start 
关闭: service iptables stop

相关推荐

STM32G0/G4无刷电机硬件设计与FOC控制实现

无刷直流电机(BLDC)和永磁同步电机(PMSM)的矢量控制依赖于高精度电流采样、实时SVPWM调制与闭环PI调节等核心技术。其底层实现需兼顾电机本体建模、坐标变换(Clark/Park)、死区补偿及硬件资源约束。STM32G0系列凭借CORDIC协处理器与超低功耗特性,适用于成本敏感型有感FOC应用;而STM32G4集成运放、FMAC滤波器与高级定时器,可支撑高性能无感控制与多源传感融合。该技术广泛应用于机器人关节、智能云台、伺服驱动等场景,是嵌入式电机控制工程师必须掌握的工程化落地能力。

weixin_35751412的博客 84

Linux 配置xampp 遇到的小困难和Apache配置多站点

一、phpMyAdmin Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in the file “httpd-xampp.conf”. ...

zlfwhz的专栏 377

SAR图像去斑(Despeckling)研究的主流开源数据集

这些数据集专门用于训练监督学习去斑模型,提供了配对的含斑SAR图像和对应的无噪声参考图像(Ground Truth)。这些数据集主要用于目标检测/识别,但包含原始SAR图像,可用于。由于缺乏真实无噪声SAR图像,许多研究采用。

VectorShift的博客 93

XMAPP,非本地访问phpmyadmin出现Access forbidden的问题

我的环境是xmapp7.1.7 / PHP 7.1.7,在非本地的机器通过ip地址访问phpmyadmin时出现了,如下的错误信息。 解决的方法是: 找到 /etc/lampp/lampp/extra/httpd-xampp.conf 文件, 注释掉Require local,改为Require all granted即可。 ...

zhanqq2012的专栏 297

phpmyadmin 遇到Access forbidden的处理方法

首先这网站的文字居然设置不让复制,真是的。 不过还是被我复制了,被我参考,还是感谢一下。 我的环境是rdas6.1  XAMPPxampp-linux-1.8.1.tar.gz. 网上其他地方都说注释掉#Deny from all,的方法行不通。  ---------------------------------------------------------------------

xshalk的专栏 9698

xamppmysql出现Access_XAMPP提示 Access forbidden情况的处理

Access forbidden!You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.If you think this is a server error, please contact t...

weixin_39962394的博客 435

xampp非本地访问phpmyadmin出现Access forbidden

*/opt/xampp/etc/extra/httpd-xampp.conf <Directory "/opt/lampp/phpmyadmin"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all Require all gr...

fareast_mzh的博客 1371

xampp访问phpmyadmin访问不了

我的xampp版本是xampp-linux-x64-5.6.15-2-installer.run, 浏览器输入“我的ip/phpmyadmin”出现如下问题: Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local net...

weixin_30420305的博客 511

主机用xampp,其他机器访问时提示“Access forbidden!”的解决办法

错误提示: Access forbidden! New XAMPP security concept:  Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".

xiaoheidouer的专栏 1854

XAMPP:外网无法访问服务器的数据库

Xampp问题之一:XAMPPAccess to the requested object is only available from the local network. You don't have permission to access /phpmyadmin/ on this server 解决方式:1,查找http-xampp.conf文件 。            

ALaoGe的博客 1259

New XAMPP security concept Access forbidden解决方法

xampp 访问出现New XAMPP security concept Access forbidden! New XAMPP security concept:Access to the requested directory is only available from the local network.This setting can be configured in the file “httpd-xampp.conf”. 解决办法: 打开httpd-xampp.conf文件(位置:lam.

paradoxaaa_的博客 758

解决修改XAMPP DocumentRoot: Access forbidden!

changing the document root to your ‘Sites’ folder install xampp from apachefriends.orgopen /Applications/XAMPP/xampfiles/etc/ in finder; right click > get info make sure its read / write by everyo

happyrabbit456的专栏 2679

xampp访问403 Access forbidden 解决办法

本地可以访问,换一台机子就不行了,是因为权限没有开启,安装目录xampp\apache\conf\extra内有个httpd-xampp.conf文件,打开, 最后一段是 # # New XAMPP security concept # <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webali...

891

xampp只允许本地访问,禁止远程访问

远程访问phpmyadmin的时候出现错误 New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf"....

weixin_30394669的博客 461

解决 XAMPP出现 Access forbidden!错误

今天用外网去访问前几天用xampp中apache搭建的一个网站服务器,出现

小孩神游的专栏 8145

wamp的phpmyadmin无法访问Forbidden的解决方案

当你安装完成wamp后,打开localhost时发现已经可以运行了但想使用phpmyadmin时,发现提示如下内容:1You don't have permission to access /phpmyadmin/ on this server.解决办法:打开如下文件:1c:\wamp\alias\phpmyadmin.conf    //这个就是你的wamp的安装目录下的内容修...

weixin_30740581的博客 981

简单谈谈xampp本地服务器的Access forbidden配置问题

问题:Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the 

MrHZJ的博客 2007

关于Mac版XAMPP 403 Access forbidden的解决

参见:http://jonathannicol.com/blog/2012/03/11/configuring-virtualhosts-in-xampp-on-mac/ # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to creat

doublefi123的专栏 3511

接口调试问题:Access Forbidden 和 服务器未能识别 HTTP 头 SOAPAction 的值

公司布了一个服务,大致的架子如下: 问题 一、HTTP status 403: Access Forbidden 原因:访问拒绝。(是一个Ashx去访问一个.asmx,两个在不同服务器上;asmx单独能直接访问,ashx程序不能访问)基本断定没有到达.asmx服务器。

邓福勇 2890

如何使用外部地址访问XAMPP

如何使用外部地址访问XAMPP 默认情况下,访问XAMPP只能在本机进行访问,即只能访问http://localhost地址。 如果需要在外部机器访问XAMPP,则需要修改配置。修改步骤如下: 1、停止lampp #/opt/lampp/lampp stop 2、修改/opt/lampp/etc/extral/httpd-xampp.conf 注释掉Deny from,

shannonlee的专栏 6751

OpenClaw小龙虾在线一键安装Windows版最新免折腾

还在为 OpenClaw 安装报错、环境变量、命令不可用发愁?这个版本就是给“想马上跑起来”的你准备的。支持一键安装与启动,适合个人开发、快速体验、课程演示和本地调试。对常见 Node/npm 环境问题做了兼容处理,安装后可直接进入控制台使用。适用人群:AI Agent 初学者、开发者、效率工具玩家。适用场景:可联网电脑、快速部署、教学演示。核心关键词:OpenClaw、Windows 安装、一键部署、AI Agent、本地运行。

JiTou-Unlock-23.12.30-beta

破解iPhone系统版本过低使用,需要关闭iPhone的查找功能

上一篇: 新浪微博技术架构分析-转载
下一篇: 如何远程连接MySQL
charly2018
博客等级 码龄16年 3粉丝 5原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值