http://tkuchiki.hatenablog.com/entry/2013/09/12/171755
shell-session
yum -y install yum-utils
yum-config-manager --enable REPOSITORY
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum install mono-complete
yum install mono-basic
yum install xsp
nginx
*説明https://academy.gmocloud.com/qa/20160616/2761
http://qiita.com/ksugawara61/items/0fcf3f72cc905bb6d654
$ sudo groupadd hoge
$ sudo useradd -g hoge hoge
$ sudo rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
$ sudo yum -y update nginx-release-centos
$ sudo yum -y --enablerepo=nginx install nginx
$ nginx -v
systemctl daemon-reload
systemctl restart mono-server
systemctl restart nginx
systemctl stop httpd
所有者を:httpd
ユーザを:apache
追記
listen = /var/run/php-fpm/php-fpm.socket
systemctl start php-fpm
systemctl enable php-fpm
インストール
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum install mono-complete
yum install xsp
yum install mono-basic
確認
fastcgi-mono-server4 --version
xsp4 --version
以下のファイル作成
/etc/systemd/system/mono-server.service
[Unit]
Description=Mono Server
Before=nginx.service
After=nss-user-lookup.target
[Service]
EnvironmentFile=
Type=simple
ExecStart=/usr/bin/fastcgi-mono-server4 /applications=/:/home/httpd/www/aspx/ /socket=unix:/var/run/mono/fastcgi-mono.socket
User=httpd
Group=apache
[Install]
WantedBy=multi-user.target
aspxのファイル入れる
Web.configのDBパスワード変更
mono-serverサービス化
*ソケットを作るために権限をつける
chown -R httpd:apache /var/run/mono
systemctl start mono-server
systemctl enable mono-server
nginxをインストール
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum -y update nginx-release-centos
yum -y --enablerepo=nginx install nginx
nginx -v
設定編集
実行ユーザ編集
vim /etc/nginx/nginx.conf
vim /etc/nginx/conf.d/default.conf
systemctl enable nginx.service
systemctl enable php-fpm.service
systemctl disenable httpd.service
8080ポート止める
firewall-cmd --remove-service=tomcat
firewall-cmd --permanent --remove-service=tomcat
https
SSLCertificateKeyFile /etc/pki/tls/private/server.key
SSLCertificateFile /etc/pki/tls/certs/server.crt
listen 443 ssl;
ssl on;
ssl_certificate /etc/pki/tls/certs/server.crt;
ssl_certificate_key /etc/pki/tls/private/server.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
エラーがが出た
error VBNC30451
以下のコマンドする
shell-session
yum install libmono-system-design4.0-cil