今天想使用ip访问本机的iview-admin项目,结果怎么配置都无法访问,根据iview工程执行的命令npm run dev了解到是webpack配置的问题,打开工程里的node_modules文件夹,依次找到webpack配置文件,即E:\work\trunk\iview-admin\node_modules\webpack-dev-server\bin,,打开webpack-dev-server.js文件,在编辑器的242行找到配置的代码,将这里的argv.host改为你的ip地址,例如w
前提是已经配置好了相应的外网和内网端口的映射 一.公网ip和端口配置 在vue项目启动之前对项目下:项目名/config/index.js 文件进行修改 原来的内容为:(位置在index.js的第16,17行作用) host: 'localhost', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free
一.查看默认端口号 1.登录mysql [root@localhost ~]# mysql -uroot -pEnter password: 输入数据库密码: 2.使用show global variables like 'port'; 命令查看端口号, mysql> show global variables like 'port';+---------------+-------+| Variable_name | Value |+---------------+-------+| port