<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
<?php | |
/** | |
* Generate an encryption key for CodeIgniter. | |
* http://codeigniter.com/user_guide/libraries/encryption.html | |
*/ | |
// http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP | |
function generate_token ($len = 32) | |
{ |
先匯出當前設定,避免玩壞無法還原 | |
# iptables-save > iptables.backup | |
# iptables -F | |
# iptables -X | |
# iptables -Z | |
# iptables -A INPUT -i eth1 -p tcp --dport 80 -j ACCEPT | |
# /etc/init.d/iptables save | |
真的不小心玩壞了,就把先前匯出的設定檔匯入 |
#! /bin/bash | |
wget --content-disposition ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz | |
tar -zxvf pcre-8.40.tar.gz | |
apt-get -y update | |
apt-get -y install git | |
apt-get -y install openssl libssl-dev | |
apt-get -y install build-essential autoconf automake libtool bison re2c |
#! /bin/bash | |
wget --content-disposition ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz | |
tar -zxvf pcre-8.40.tar.gz | |
apt-get -y update | |
apt-get -y install git | |
apt-get -y install openssl libssl-dev | |
apt-get -y install build-essential autoconf automake libtool bison re2c |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon | |
### END INIT INFO |
apt-get update | |
apt-get install -y language-pack-en-base | |
locale-gen en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
add-apt-repository ppa:ondrej/php | |
apt-get update | |
apt-get install -y php7.1-fpm php7.1-curl php7.1-mbstring php7.1-mcrypt php7.1-mysql libssl1.0.2 php-common php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-readline php7.1-dev php-memcached |
yum -y install wget gcc libffi-devel python-devel openssl-devel | |
curl https://bootstrap.pypa.io/get-pip.py | sudo python | |
pip install cryptography | |
pip install scrapy |
# Start the old vagrant | |
$ vagrant init centos-7 | |
$ vagrant up | |
# You should see a message like: | |
# Installing Virtualbox Guest Additions 5.0.20 - guest version is unknown | |
$ vagrant ssh | |
vagrantup:~$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm | |
vagrantup:~$ sudo yum -y update |