TypechoJoeTheme

御品VPS

统计

ypvps.com

🏃‍♂️人生之路,难免坎坷,但我执着

PHP 5 Timezones

2018-03-25
/
0 评论
/
156 阅读
/
正在检测是否收录...
03/25

PHP 5 时区


PHP 支持的时区

下面是 PHP 支持的时区的完整列表,这些对一些 PHP 日期函数很有用。



非洲

Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara
Africa/Asmera Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau
Africa/Blantyre Africa/Brazzaville Africa/Bujumbura Africa/Cairo Africa/Casablanca
Africa/Ceuta Africa/Conakry Africa/Dakar Africa/Dar_es_Salaam Africa/Djibouti
Africa/Douala Africa/El_Aaiun Africa/Freetown Africa/Gaborone Africa/Harare
Africa/Johannesburg Africa/Juba Africa/Kampala Africa/Khartoum Africa/Kigali
Africa/Kinshasa Africa/Lagos Africa/Libreville Africa/Lome Africa/Luanda
Africa/Lubumbashi Africa/Lusaka Africa/Malabo Africa/Maputo Africa/Maseru
Africa/Mbabane Africa/Mogadishu Africa/Monrovia Africa/Nairobi Africa/Ndjamena
Africa/Niamey Africa/Nouakchott Africa/Ouagadougou Africa/Porto-Novo Africa/Sao_Tome
Africa/Timbuktu Africa/Tripoli Africa/Tunis Africa/Windhoek

美洲

America/Adak America/Anchorage America/Anguilla
America/Antigua America/Araguaina America/Argentina/Buenos_Aires
America/Argentina/Catamarca America/Argentina/ComodRivadavia America/Argentina/Cordoba
America/Argentina/Jujuy America/Argentina/La_Rioja America/Argentina/Mendoza
America/Argentina/Rio_Gallegos America/Argentina/Salta America/Argentina/San_Juan
America/Argentina/San_Luis America/Argentina/Tucuman America/Argentina/Ushuaia
America/Aruba America/Asuncion America/Atikokan
America/Atka America/Bahia America/Bahia_Banderas
America/Barbados America/Belem America/Belize
America/Blanc-Sablon America/Boa_Vista America/Bogota
America/Boise America/Buenos_Aires America/Cambridge_Bay
America/Campo_Grande America/Cancun America/Caracas
America/Catamarca America/Cayenne America/Cayman
America/Chicago America/Chihuahua America/Coral_Harbour
America/Cordoba America/Costa_Rica America/Creston
America/Cuiaba America/Curacao America/Danmarkshavn
America/Dawson America/Dawson_Creek America/Denver
America/Detroit America/Dominica America/Edmonton
America/Eirunepe America/El_Salvador America/Ensenada
America/Fort_Wayne America/Fortaleza America/Glace_Bay
America/Godthab America/Goose_Bay America/Grand_Turk
America/Grenada America/Guadeloupe America/Guatemala
America/Guayaquil America/Guyana America/Halifax
America/Havana America/Hermosillo America/Indiana/Indianapolis
America/Indiana/Knox America/Indiana/Marengo America/Indiana/Petersburg
America/Indiana/Tell_City America/Indiana/Vevay America/Indiana/Vincennes
America/Indiana/Winamac America/Indianapolis America/Inuvik
America/Iqaluit America/Jamaica America/Jujuy
America/Juneau America/Kentucky/Louisville America/Kentucky/Monticello
America/Knox_IN America/Kralendijk America/La_Paz
America/Lima America/Los_Angeles America/Louisville
America/Lower_Princes America/Maceio America/Managua
America/Manaus America/Marigot America/Martinique
America/Matamoros America/Mazatlan America/Mendoza
America/Menominee America/Merida America/Metlakatla
America/Mexico_City America/Miquelon America/Moncton
America/Monterrey America/Montevideo America/Montreal
America/Montserrat America/Nassau America/New_York
America/Nipigon America/Nome America/Noronha
America/North_Dakota/Beulah America/North_Dakota/Center America/North_Dakota/New_Salem
America/Ojinaga America/Panama America/Pangnirtung
America/Paramaribo America/Phoenix America/Port-au-Prince
America/Port_of_Spain America/Porto_Acre America/Porto_Velho
America/Puerto_Rico America/Rainy_River America/Rankin_Inlet
America/Recife America/Regina America/Resolute
America/Rio_Branco America/Rosario America/Santa_Isabel
America/Santarem America/Santiago America/Santo_Domingo
America/Sao_Paulo America/Scoresbysund America/Shiprock
America/Sitka America/St_Barthelemy America/St_Johns
America/St_Kitts America/St_Lucia America/St_Thomas
America/St_Vincent America/Swift_Current America/Tegucigalpa
America/Thule America/Thunder_Bay America/Tijuana
America/Toronto America/Tortola America/Vancouver
America/Virgin America/Whitehorse America/Winnipeg
America/Yakutat America/Yellowknife

南极洲

Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Macquarie Antarctica/Mawson
Antarctica/McMurdo Antarctica/Palmer Antarctica/Rothera Antarctica/South_Pole Antarctica/Syowa
Antarctica/Vostok

北冰洋

Arctic/Longyearbyen

亚洲

Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau
Asia/Aqtobe Asia/Ashgabat Asia/Ashkhabad Asia/Baghdad Asia/Bahrain
Asia/Baku Asia/Bangkok Asia/Beirut Asia/Bishkek Asia/Brunei
Asia/Calcutta Asia/Choibalsan Asia/Chongqing Asia/Chungking Asia/Colombo
Asia/Dacca Asia/Damascus Asia/Dhaka Asia/Dili Asia/Dubai
Asia/Dushanbe Asia/Gaza Asia/Harbin Asia/Hebron Asia/Ho_Chi_Minh
Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Istanbul Asia/Jakarta
Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka Asia/Karachi
Asia/Kashgar Asia/Kathmandu Asia/Katmandu Asia/Khandyga Asia/Kolkata
Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait Asia/Macao
Asia/Macau Asia/Magadan Asia/Makassar Asia/Manila Asia/Muscat
Asia/Nicosia Asia/Novokuznetsk Asia/Novosibirsk Asia/Omsk Asia/Oral
Asia/Phnom_Penh Asia/Pontianak Asia/Pyongyang Asia/Qatar Asia/Qyzylorda
Asia/Rangoon Asia/Riyadh Asia/Saigon Asia/Sakhalin Asia/Samarkand
Asia/Seoul Asia/Shanghai Asia/Singapore Asia/Taipei Asia/Tashkent
Asia/Tbilisi Asia/Tehran Asia/Tel_Aviv Asia/Thimbu Asia/Thimphu
Asia/Tokyo Asia/Ujung_Pandang Asia/Ulaanbaatar Asia/Ulan_Bator Asia/Urumqi
Asia/Ust-Nera Asia/Vientiane Asia/Vladivostok Asia/Yakutsk Asia/Yekaterinburg
Asia/Yerevan

大西洋

Atlantic/Azores Atlantic/Bermuda Atlantic/Canary Atlantic/Cape_Verde Atlantic/Faeroe
Atlantic/Faroe Atlantic/Jan_Mayen Atlantic/Madeira Atlantic/Reykjavik Atlantic/South_Georgia
Atlantic/St_Helena Atlantic/Stanley

大洋洲

Australia/ACT Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Canberra
Australia/Currie Australia/Darwin Australia/Eucla Australia/Hobart Australia/LHI
Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/North Australia/NSW
Australia/Perth Australia/Queensland Australia/South Australia/Sydney Australia/Tasmania
Australia/Victoria Australia/West Australia/Yancowinna

欧洲

Europe/Amsterdam Europe/Andorra Europe/Athens Europe/Belfast Europe/Belgrade
Europe/Berlin Europe/Bratislava Europe/Brussels Europe/Bucharest Europe/Budapest
Europe/Busingen Europe/Chisinau Europe/Copenhagen Europe/Dublin Europe/Gibraltar
Europe/Guernsey Europe/Helsinki Europe/Isle_of_Man Europe/Istanbul Europe/Jersey
Europe/Kaliningrad Europe/Kiev Europe/Lisbon Europe/Ljubljana Europe/London
Europe/Luxembourg Europe/Madrid Europe/Malta Europe/Mariehamn Europe/Minsk
Europe/Monaco Europe/Moscow Europe/Nicosia Europe/Oslo Europe/Paris
Europe/Podgorica Europe/Prague Europe/Riga Europe/Rome Europe/Samara
Europe/San_Marino Europe/Sarajevo Europe/Simferopol Europe/Skopje Europe/Sofia
Europe/Stockholm Europe/Tallinn Europe/Tirane Europe/Tiraspol Europe/Uzhgorod
Europe/Vaduz Europe/Vatican Europe/Vienna Europe/Vilnius Europe/Volgograd
Europe/Warsaw Europe/Zagreb Europe/Zaporozhye Europe/Zurich

印度洋

Indian/Antananarivo Indian/Chagos Indian/Christmas Indian/Cocos Indian/Comoro
Indian/Kerguelen Indian/Mahe Indian/Maldives Indian/Mauritius Indian/Mayotte
Indian/Reunion

太平洋

Pacific/Apia Pacific/Auckland Pacific/Chatham Pacific/Chuuk Pacific/Easter
Pacific/Efate Pacific/Enderbury Pacific/Fakaofo Pacific/Fiji Pacific/Funafuti
Pacific/Galapagos Pacific/Gambier Pacific/Guadalcanal Pacific/Guam Pacific/Honolulu
Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Kwajalein Pacific/Majuro
Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk
Pacific/Noumea Pacific/Pago_Pago Pacific/Palau Pacific/Pitcairn Pacific/Pohnpei
Pacific/Ponape Pacific/Port_Moresby Pacific/Rarotonga Pacific/Saipan Pacific/Samoa
Pacific/Tahiti Pacific/Tarawa Pacific/Tongatapu Pacific/Truk Pacific/Wake
Pacific/Wallis Pacific/Yap
free
朗读
赞(0)
版权属于:

御品VPS

本文链接:

http://blog.ypvps.com/index.php/596.html(转载时请注明本文出处及文章链接)

评论 (0)

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. 亚光hu
    2020-10-04
  2. 27896532
    2018-03-13
  3. A WordPress Commenter
    2018-01-24
  4. admin
    2013-05-30

    sysprep win系统改SID
    http://mirrors.arsc.edu/centos/6/isos/x86_64/ 上传网络安装程序iso再装系统
    如是linux 先
    wget http://soluslabs.com/installers/solusvm/install
    chmod 755 install
    ./install
    vzctl create 101 --ostemplate centos-5.0-x86 --config vswap-2g
    vzctl set 101 --onboot yes --save
    vzctl set 101 --ipadd 192.168.1.102 --save
    vzctl set 101 --nameserver 8.8.8.8 --save
    vzctl set 101 --hostname redhat6 --save
    vzcet start 101
    vzctl enter 101
    passwd 改root密码
    vzctl start 101 开机
    vzctl restart 101 重启
    vzctl stop 101 停机
    vzctl destroy 101 删除
    1、先把vps关闭,然后进入服务器
    cd /vz/root
    cp -r 110 120
    cd /vz/private
    cp -r 110 120
    cd /etc/vz/conf
    cp 110.conf 120.conf
    然后修改里面的ip地址和名字即可
    vzctl 120 start 启动第二台vps
    备份:vzdump –compress ID 如 vzdump -compress 101
    恢复:vzdump –restore bakID.tar ID(如101)
    清理缓存内存占用:
    sync
    */15 * * * * echo 3 > /proc/sys/vm/drop_caches 加到15分钟运行一次 内存释放的很痛快
    vi /var/spool/cron/root复制下面的内容添加进去
    00 00 * * * rm -rf /root/.vnc/*.log
    01 00 * * * reboot
    00 03 * * * rm -rf /root/.vnc/*.log
    01 03 * * * reboot
    00 06 * * * rm -rf /root/.vnc/*.log
    01 06 * * * reboot
    00 09 * * * rm -rf /root/.vnc/*.log
    01 09 * * * reboot
    00 12 * * * rm -rf /root/.vnc/*.log
    01 12 * * * reboot
    00 15 * * * rm -rf /root/.vnc/*.log
    01 15 * * * reboot
    00 18 * * * rm -rf /root/.vnc/*.log
    01 18 * * * reboot
    小鸡操作:
    #!/bin/bash
    yum remove portmap* httpd* bind9* samba* nscd* sendmail* -y
    yum install vnc-server -y
    yum install firefox curl -y
    yum install gnome-terminal -y
    yum groupinstall "Chinese Support" -y
    echo 'VNCSERVERS="1:root"'>>/etc/sysconfig/vncservers
    echo 'VNCSERVERARGS[1]="-geometry 300x200"'>>/etc/sysconfig/vncservers
    vncserver
    echo >/root/.vnc/xstartup
    echo '#!/bin/bash'>>/root/.vnc/xstartup
    echo 'gnome-terminal'>>/root/.vnc/xstartup
    echo 'firefox'>>/root/.vnc/xstartup
    chmod +x /root/.vnc/xstartup
    chkconfig vncserver on
    wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.243/install_flash_player_11_linux_i386.tar.gz
    tar zxvf install_flash_player_11_linux_i386.tar.gz
    mkdir -p ~/.mozilla/plugins/
    cp libflashplayer.so ~/.mozilla/plugins/
    wget http://vagex.com/vagex_add_on-1.6.1.xpi
    service vncserver restart

  5. admin
    2013-05-28

    重装OpenVZ主服务器的步骤 发表于 2012-03-28 19:24 - 只看楼主
    1 2 3 4 5
    [查看评级用户] 楼主
    .字号 较小字号
    正常字号
    较大字号
    本主题由 糖饭 于 2012/6/8 15:20:00 执行 设置分类 [查看记录]
    1、安装必要程序包
    yum install exim vzdump ncftp
    2、拷贝SolusVM数据库(SolusVM是很常用的管理OpenVZ下VPS的管理面板)
    利用SolusVM的后台备份工具,对整个SolusVM的数据库进行一次备份。您也可以通过以下命令,把备份文件上传到其他服务器上。
    ncftpput -u USERNAME -p PASSWORD FTPSERVERIP /path/on/ftp/server /path/to/database/dump
    当然,也可以想办法转移到自己的本地电脑上。同时,您还需要从solusvm.conf (/usr/local/solusvm/includes/solusvm.conf) 中拷贝加密字符串ENCRYPTION KEY。字符串的格式是:::::。如果你怕拷贝不完全,直接把这个conf文件拷贝下来当然也是可以的。
    3、备份VPS主机
    您可以通过vzdump这个命令来备份全部的VPS主机。同时,需要获取全部VPS的ID编号,您可以通过vzlist -a这个命令来得到。
    [root@www.zhaomu.com]# vzlist -a
    CTID NPROC STATUS IP_ADDR HOSTNAME
    107 – running 109.169.51.15 apitest0.com
    109 – stopped 109.169.51.13 apitest1.com
    110 – running 1.1.1.1 apitest2.com
    然后我们用vzdump –compress CTID这个命令来备份每个VPS主机。示例如下:
    [root@www.zhaomu.com]# vzdump –compress 107
    INFO: Starting new backup job – vzdump –compress 107
    INFO: Starting Backup of VM 107 (openvz)
    INFO: status = CTID 107 exist unmounted down
    INFO: creating archive ‘/vz/dump/vzdump-107.dat’ (/vz/private/107)
    INFO: Total bytes written: 812595200 (775MiB, 7.4MiB/s)
    INFO: file size 151MB
    INFO: Finished Backup of VM 107 (00:01:47)
    [root@www.zhaomu.com]#
    上述命令是把备份导入到/vz/dump/目录中,下面我们通过这个命令把备份上传到FTP服务器上。
    ncftpput -u USERNAME -p PASSWORD FTPSERVERIP /path/on/ftp/server/ /vz/dump/vzdump-107.tgz
    4、其他要备份的东西
    模板文件也是要备份的,每种虚拟化技术对应的模板文件位置如下:
    Xen Templates => /home/solusvm/xen/template/
    Xen ISO’s => /home/solusvm/xen/iso/
    KVM ISO’s => /home/solusvm/xen/iso/
    OpenVZ Templates => /vz/template/cache/
    5、重装操作系统
    在进行完上述备份之后,就可以开始放心的重装操作系统了。
    6、安装SolusVM
    操作系统重装完毕后,按照常规办法来安装SolusVM主控端。
    7、恢复SolusVM数据库
    把之前备份的数据库上传到新服务器上,或者从FTP服务器中下载。新的数据库连接代码,我们可以从/usr/local/solusvm/includes/solusvm.conf获得,具体格式是: ::::
    重要:现在我们把老的加密代码替换进去,这个加密代码之前也备份过。这样我们就可以恢复数据库了:
    命令是:/usr/bin/mysql –user=USER –password=PASSWORD DATABASENAME < database.sql
    恢复完毕后,我们就可以用之前的用户名密码来登录管理界面。
    8、恢复VPS主机
    从FTP服务器上下载每个VPS的备份,比如:FTPSERVERIP /vz/dump/ /path/on/ftp/server/vzdump-107.tgz
    然后进行恢复:vzdump –restore /vz/dump/vzdump-CTID.tgz CTID
    一个示例如下:
    [root@www.zhaomu.com]# vzdump –restore /vz/dump/vzdump-107.tgz 107
    INFO: restore openvz image ‘vzdump-107.tgz’ using ID 107
    INFO: extracting archive ‘vzdump-107.tgz’
    INFO: extracting configuration to ‘/etc/vz/conf/107.conf’
    INFO: restore successful

标签云