已升级至php7.0.0-dev

探针地址:https://www.cevin.me/phpinfo.php

编译参数(记住buildconf):

./configure –prefix=/usr/local/php7 –with-config-file-path=/usr/local/php/etc –with-jpeg-dir –with-gd –with-png-dir –with-freetype-dir –with-mhash –with-mcrypt –with-openssl –with-curl –without-pear –with-libxml-dir –with-zlib –enable-bcmath –enable-exif –enable-ftp –with-gettext –enable-mbstring –with-mysql=mysqlnd –with-pdo-mysql=mysqlnd –with-mysqli=mysqlnd –enable-soap –enable-zip –with-iconv-dir –enable-fpm –with-pdo-pgsql=/usr/local/pgsql –with-pgsql=/usr/local/pgsql –enable-sockets –enable-mysqlnd

php7-dev最新版本源码:https://github.com/php/php-src/archive/master.zip

弱弱的说一下:性能提升明显 🙂

Systemd脚本规范

/etc/systemd/system/pgsql.service

[Unit]
Description=PostgreSQL-XL Master Node

[Service]
Type=forking
User=pgsql
GuessMainPID=yes
ExecStart=/usr/local/pgxl/bin/pg_ctl -D /data/pg-hma -l /data/pglog/hma start
ExecStop=/usr/local/pgxl/bin/pg_ctl -D /data/pg-hma -l /data/pglog/hma stop
# 如果进程意外终止自动重新启动 systemctl 结束不会自动重启
Restart=always

[Install]
WantedBy=multi-user.target

启动: systemctl start pgsql
状态:systemctl status pgsql

mysql:

[Unit]
Description=MySQL RDBMS

[Service]
#类型simple
Type=simple
GuessMainPID=yes
ExecStart=/usr/local/mysql/bin/mysqld --defaults-file=/usr/local/mysql/my.cnf
Restart=always

[Install]
WantedBy=multi-user.target

了解更多点击这里:https://zh.opensuse.org/openSUSE:How_to_write_a_systemd_service