WampServer修改端口及菜单Localhost,
一、修改Apache端口
1、在界面中选Apache,弹出隐藏菜单选项,打开配置文件httpd.conf;
2、找到 Listen 80;
3、将 80 改成 8080(当然自己也可以设定别的不使用的端口);
4、保存,待重启Wamp服务后即可。
二、修改Wamp打开默认页 Localhost 和 phpMyadmin 的端口
1、打开wamp目录下wampmanager.tpl文件
2、找到
Parameters: "http://localhost/"; Glyph: 5
Parameters: "http://localhost/phpmyadmin/"; Glyph: 5
3、改成
Parameters: http://localhost:8080/; Glyph: 5
Parameters: "http://localhost:8080/phpmyadmin/"; Glyph: 5
改好之后要退出Wamp,重新打开启动配置才会生效,我开始直接重启服务就没用。
三、修改phpmyadmin的默认密码
1、进入安装盘符下Wamp/apps下的phpmyadmin文件夹
2、打开config.inc文件
3、找到
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '这里填写你的密码';
4、修改好你的密码,保存即可。
四、如何配置改变Apache首页文件名
当你输入例如 http://localhost 时,Apache会默认打开index.html文件,如果你想修改首页文件或者增加首页文件时,打开httpd.conf,找到DirectoryIndex index.html,修改index.html为你想要文件名即可,比如test.php。如果你想添加多个首页文件,可以用空格隔开,文件的前后顺序就是首页文件读取的优先度。修改后重启Apache服务!
» 本文链接:吴文辉博客 » http://www.wuwenhui.cn/3047.html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
