Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c.NotebookApp.ip ='*' <外部からアクセス可能にする | |
c.NotebookApp.port = 8888 <EC2のセキュリティグループで開けたポートに合わせる | |
**パスワード設定も書く必要あり、別記事にする** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yyyy/mm/dd hh:mm:ss [error] xxxxx#xxxxx: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 | |
Unable to open primary script: /usr/share/nginx/html/mysite/index.html (Permission denied)" while reading response header from upstream, client: 192.168.xx.xxx, server: localhost, request: "GET /mysite/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "myserver.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/php-fpm.d/www.conf | |
user = nginx | |
group = nginx | |
listen = /var/run/php-fpm/php-fpm.sock | |
listen.mode = 660 | |
security.limit_extensions = .php .html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz | |
tar xzvf js185-1.0.0.tar.gz | |
cd js185-1.0.0/src | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system("su -u UserA -s スクリプト.sh"); > 検索スクリプトを実行 | |
wait,終了を戻り値で確認してから | |
system("su -u UserA -s zip -r 出来上がりファイル名".".zip"); > ZIPへ圧縮 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cmd = "sudo -u userA -s /usr/local/matlab/bin/matlab myProgram\($input1,$input2\)"; | |
exec($cmd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#start on (local-filesystems | |
# and started dbus | |
# and static-network-up) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wordpressの例 | |
server{ | |
listen 8000; <<<ここを変える | |
root /home/wordpress;<<<ここも変える | |
access_log /var/log/nginx/wp_access.log;<<ログも変えておく | |
error_log /var/log/nginx/wp_error.log; | |
location / { | |
index index.php; | |
} |
NewerOlder