宝塔面板修改composer默认PHP版本
rm -f /usr/bin/php ln -sf /www/server/php/73/bin/php /usr/bin/php
rm -f /usr/bin/php ln -sf /www/server/php/73/bin/php /usr/bin/php
依次执行下面代码,我测试安装成功,可以使用 yum install libmcrypt libmcrypt-devel mcrypt mhash wget https://pecl.php.net/get/mcrypt-1.0.3.tgz tar xf mcrypt-1.0.3.tgz cd mcrypt-1.0.3 /www/server/php/73/bin/phpize ./configure –with-php-config=/www/server/php/73/bin/php-config && make && make install 如果不成功在 php.ini 里面加上 extension=mcrypt.so
01 zFTPServer zFTPServer has an amazing user interface since the management controls run in your web browser. Just install the server and log in with the admin password through the web link you’re given. Every window you open through the management console can be dragged around on the screen and used simultaneously, much like if …
Create database mysql -uroot -p CREATE DATABASE `newdb` DEFAULT CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI; Copy database mysqldump db1 -u root -p123456 –add-drop-table | mysql newdb -u root -p123456 If different server mysqldump db1 -uroot -p123456 –add-drop-table | mysql -h 192.168.1.22 newdb -u root -p123456
On CentOS 7, using yum install gives you cmake version 2.8.11 [[email protected] ~]# cat /etc/*release CentOS Linux release 7.2.1511 (Core)
Command yum update -y yum install haproxy mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.default vi /etc/haproxy/haproxy.cfg copy to haproxy.cfg global ulimit-n 51200 defaults log global mode tcp option dontlognull timeout connect 1000ms timeout client 150000ms timeout server 150000ms frontend 80-in bind *:80 default_backend 80-out backend 80-out server server1 original Ip maxconn 20480 Auto start haproxy sudo chkconfig haproxy on
firewall firewall-cmd –zone=public –add-port=80/tcp –permanent systemctl stop firewalld.service systemctl start firewalld.service systemctl restart firewalld.service Ipatbles iptables -A INPUT -p tcp –dport 80 -j ACCEPT iptables -A OUTPUT -p tcp –sport 80 -j ACCEPT systemctl save iptables.service systemctl restart iptables.service
Postfix中有一套Mail Queue Management机制,所有队列中的邮件都可以全自动的处理,但在发送大量邮件的时候,有必要对这个队列进行手工的维护处理,比如说,删除队列中的邮件. 以下是一些常用的命令: 列出目前在 Mail Queue 中的邮件 mailq 刪除所有在 Queue 中的邮件 postsuper -d ALL
fdisk -l mkdir /home/sdb1 mount -t ntfs-3g /dev/sdb1 /home/sdb1 vi /etc/fstab /dev/sdb1 /home/sdb1 ntfs-3g defaults 0 0
Configure eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=”eth0″ NM_CONTROLLED=”yes” ONBOOT=yes HWADDR=A4:BA:DB:37:F1:04 TYPE=Ethernet BOOTPROTO=static NAME=”System eth0″ UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 IPADDR=192.168.1.44 NETMASK=255.255.255.0 ## Configure Default Gateway # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos6 GATEWAY=192.168.1.1 ## Restart Network Interface # /etc/init.d/network restart ## Configure DNS Server # vi /etc/resolv.conf nameserver 8.8.8.8 # Replace with your nameserver ip nameserver 192.168.1.1 # Replace with your nameserver ip