vpp app更新版本需要修改的php配置文件
1:/老/app/static/html/forceUrl/android5.4UpdateTips.html
2:/老/app/static/php/update/updateConfig.php
3:/新/config/api/app/update.php
1:/老/app/static/html/forceUrl/android5.4UpdateTips.html
2:/老/app/static/php/update/updateConfig.php
3:/新/config/api/app/update.php
1,查找指定目录里面,以php结尾的文件:
sudo find /www/ -name “*.php”
2,查找指定目录里面,以php结尾的文件,里面包含指定字符串的:
sudo find /www/ -name “*.php” | xargs grep “file_put_contents”
说明:指定字符串有一些字符需要转移才能正确执行,比如:$
3,查找指定目录里面,以php结尾的文件,最近修改时间在24小时以内的:
sudo find /www/ -name “*.php” -mtime 0
说明:
3.1:0代表0-24小时,1代表24-48小时,2代表48-72小时中,依次类推
3.2:如果想一次性显示0-24小时和24-48小时,可以:(使用 – o链接)
sudo find /www/ -name “*.php” -mtime 0 -o -mtime 1
多个可以追加多个 – o
ubuntu 18.04以后如何修改固定ip和固定dns这个问题可能刚接触18.04系统的还不知道怎么修改,我们都知道老版本可能很简单,就是修改:
sudo vim /etc/network/interfaces
输入类似:
输入:
auto eth0
iface eth0 inet static
address 192.168.2.1
gateway 192.168.2.254
netmask 255.255.255.0
就可以搞定了
但是自ubuntu 18.04开始,这样就不行啦,/etc/network/interfaces文件已经忽略
如果你先在ubuntu 18.04系统中使用固定ip,包括固定dns,请参考如下修改:
sudo vim /etc/netplan/50-cloud-init.yaml
或者在/etc/netplan的目录下,其他.yaml文件
代码:##################
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init’s network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp4s0:
addresses: [61.191.56.18/24]
dhcp4: no
dhcp6: no
optional: true
gateway4: 61.191.56.1
nameservers:
addresses: [114.114.114.114,114.114.115.115]
version: 2
代码:##################
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp4s0:
addresses: [61.191.56.18/24]
dhcp4: no
dhcp6: no
optional: true
gateway4: 61.191.56.1
nameservers:
addresses: [114.114.114.114,114.114.115.115]
version: 2
保存,然后执行:sudo netplan apply
搞定。
最近安装了ubuntu 18.04,使用tzselect修改时区不知为何总是无效,最后用了下面的命令:
运行命令dpkg-reconfigure tzdata,选择Asia–>Shanghai,确定,问题解决!
附带tzselect的方法:
sudo tzselect
sudo cp -r /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
同步时间:
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo ntpdate pool.ntp.org
sudo ntpdate cn.pool.ntp.org
sudo ntpdate ntp.ubuntu.com
在修改时间以后,修改硬件CMOS的时间
sudo hwclock --systohc //非常重要,如果没有这一步的话,后面时间还是不准
很多人尝试如何在android studio重命名项目名称,android studio可能不像eclipse那么简单,那么本人亲测正确的流程如下:
1,关闭android studio
2,重命名项目根目录文件夹名称
3,打开android studio,选择Open an existing Android Studio project,选择刚才的文件夹
4,等待一会儿,android studio会自动生成相关的文件并修改其中的配置
5,右键项目里面的旧文件(项目名称),选择修改,选择修改module
6,手动修改项目名称完成
7,重启android studio,应该搞定了。
近期评论