發表文章

目前顯示的是 7月, 2018的文章

laravel 5.4 所需環境指令

主機環境: apt-get update && apt-get install -y git echo "* soft nofile 64000" >> /etc/security/limits.conf echo "* hard nofile 64000" >> /etc/security/limits.conf echo "root hard nofile 64000" >> /etc/security/limits.conf echo "root hard nofile 64000" >> /etc/security/limits.conf echo "session required pam_limits.so" >> /etc/pam.d/common-session echo "session required pam_limits.so" >> /etc/pam.d/common-session-noninteractive echo "ulimit -HSn 64000" >> /etc/profile apt-get install -y imagemagick libmagickwand-dev libmagickcore-dev add-apt-repository ppa:ondrej/php && apt-get update apt-get install -y php5.6 \ php5.6-xml \ php5.6-dev \ php5.6-fpm \ php5.6-mysql \ php5.6-mbstring \ php5.6-curl \ php5.6-gd \ php-imagick \ php-redis \ php-memcache apt-get install nginx # 將php5.6-fpm內的設定修改 listen = 127.0.0.1:9000 vi /etc/php/5.6/fpm/pool.d/www.conf sud...

背景執行python, 並且輸出log

# 取出 piypa3.py 的 pid, 並且結束這個pid ps aux | grep piypa3.py | awk '{print $2}' | xargs kill -9 nohup python -u piypa2.py > nohup.out 2>&1 &